/* General Styles */
body {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Minimum height of the viewport */
    height: auto; /* Allows the height to adjust */
    overflow-x: hidden; /* Only hides horizontal overflow */
}

/* Canvas Background */
canvas {
    position: fixed; /* Ensure it covers the entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all other elements */
    pointer-events: none; /* Prevent interactions */
}

/* Header */
header {
    position: relative; /* Header ist im Dokumentenfluss */
    width: 100%;
    display: flex;
    flex-direction: column; /* Inhalte vertikal anordnen */
    align-items: center; /* Inhalte horizontal zentrieren */
    justify-content: center; /* Inhalte vertikal zentrieren */
    box-sizing: border-box;
    overflow: visible; /* Inhalt sichtbar lassen */
    z-index: 1000; /* Bleibt über dem Canvas */
    background-color: #112d60; /* Hintergrundfarbe für Lesbarkeit */
    padding-bottom: 0px; /* Abstand unterhalb des Headers */
    border-bottom: 2px solid #00ffff;
}

header .banner {
    position: relative; /* Banner ist im normalen Fluss */
    margin: 0 auto; /* Horizontale Zentrierung */
    width: 100%; /* Standardbreite */
    max-width: 1024px; /* Maximale Breite */
    min-width: 600px; /* Minimale Breite */
    height: auto; /* Höhe proportional zur Breite */
    z-index: 1; /* Bleibt über dem Hintergrund */
    overflow: hidden; /* Überschuss abschneiden */
}

header .banner img {
    width: 100%; /* Füllt den verfügbaren Platz */
    height: auto; /* Proportionale Höhe */
    object-fit: cover; /* Passt das Bild an */
}

header h1 {
    font-size: 40px;
    font-weight: 600;
    margin: 0;
    text-align: center; /* Text zentrieren */
    position: relative;
    z-index: 10; /* Ensure H1 stays above the canvas */
}

/* Main Section */
main {
    display: flex; /* Flexbox aktivieren */
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    margin-top: 0px; /* Platz für das Banner */ /* Höhe des verbleibenden Viewports (Abzug der Header-Höhe) */
    margin-bottom: 32px;
    padding: 20px;
    text-align: center; /* Text zentrieren */
    position: relative;
    z-index: 10;
   
}

/* Chat Image */
.chat-img {
    display: block; /* Sicherstellen, dass es ein Blockelement ist */
    margin: 0px auto; /* Automatische Zentrierung horizontal und vertikaler Abstand */
    margin-top: 0px;
    max-height: 100px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative; /* Ensures stacking order */
    z-index: 10; /* Above the canvas */
}

.chat-img:hover {
    transform: scale(1.1);
}

/* Chat Section */
.chat-section {
    max-width: 90%; /* Flexible Breite */
    min-width: 300px; /* Untere Grenze */
    margin: 0 auto;
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    position: relative; /* Allows proper stacking */
    z-index: 10; /* Above the canvas */

}

.chat-section h2 {
    text-align: center;
    font-size: 24px;
    color: #0091fa;
    margin: 20px 0; /* Zusätzlicher vertikaler Abstand */
    position: relative; /* Ensures proper stacking */
    z-index: 10; /* Above the canvas */
}

/* Textarea */
textarea {
    font-family: Arial, sans-serif;
    width: 95%;
    height: 100px;
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 15px;
    outline: none;
    background-color: #f5f5f5;
    position: relative; /* Ensures stacking order */
    z-index: 10; /* Above the canvas */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1); /* Light shadow under textarea */
}

textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Response Box */
.response-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative; /* Ensures stacking order */
    z-index: 10; /* Above the canvas */
}

/* Button Container */
.btn-container {
    display: flex;
    justify-content: flex-end; /* Button nach rechts schieben */
    gap: 10px; /* Abstand zwischen mehreren Buttons */
    margin-top: 20px; /* Falls ein Abstand benötigt wird */
}

.btn {
    background-color: #0091fa;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0; /* Kein zusätzlicher Abstand */
    position: relative;
    z-index: 10; /* Above the canvas */
}

.btn:hover {
    background-color: #0066ff;
}

/* Footer */
footer {
    background-color: #112d60;
    color: #666666;
    text-align: center;
    padding: 0; /* Kein Padding */
    position: fixed; /* Footer bleibt am unteren Rand */
    width: 100%;
    bottom: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #00ffff;
    z-index: 10;
    height: 32px; /* Feste Höhe */
    line-height: 32px; /* Text vertikal zentriert */
    overflow: hidden; /* Verhindert Überschuss */
}

/* Footer Text */
footer p {
    margin: 0; /* Kein Abstand */
    font-size: 12px; /* Angemessene Schriftgröße */
    line-height: 32px; /* Gleiche Höhe wie Footer */
    white-space: nowrap; /* Text bleibt in einer Zeile */
    overflow: hidden; /* Kein Textüberlauf */
    text-overflow: ellipsis; /* Fügt "..." bei Überlauf hinzu */
}

@media (max-width: 768px) {
    header .banner {
        min-width: 100%; /* Banner passt sich kleineren Bildschirmen an */
    }

    header {
        padding-bottom: 0px; /* Weniger Abstand für kleinere Bildschirme */
    }
}
