/* Globale Stile und Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Farbvariablen für einfache Anpassung */
    --color-background: #1c1c1c; 
    --color-text-light: #f4f4f4;
    --color-primary: #3a4f8f; /* Blau */
    --color-secondary: #a32c66; /* Magenta/Pink */
    --color-accent: #d4af37; /* Gold */
    --font-heading: 'Georgia', serif;
    --font-body: 'Arial', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-light);
    background-color: var(--color-background);
    line-height: 1.6;
    min-height: 100vh; /* Mindestens volle Bildschirmhöhe */
    display: flex;
    flex-direction: column;
}

/* --- Header & Logo Styling --- */
.main-header {
    display: flex;
    justify-content: center; /* Zentriert den Header-Inhalt */
    align-items: center;
    padding: 20px 40px;
    /* Optional: Ein leichter Schatten für Tiefe */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
    z-index: 1000;
}

.taad-logo {
    height: 80px; /* Größe des Logos anpassen */
    width: auto;
    transition: transform 0.3s ease;
}

.taad-logo:hover {
    transform: scale(1.05);
}

/* --- Hero Section (Hauptinhalt) Styling --- */
.hero-section {
    flex-grow: 1; /* Nimmt den restlichen Platz ein */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
}

.slogan-box {
    max-width: 800px;
    padding: 40px;
    /* Ein leicht durchscheinender Hintergrund für mehr Designer-Look */
    background: rgba(0, 0, 0, 0.4); 
    border-radius: 15px;
    border: 1px solid var(--color-primary); /* Rahmen mit Akzentfarbe */
    animation: fadeIn 1.5s ease-out; /* Sanfter Auftritt */
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-accent); /* Gold für den wichtigsten Slogan */
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.tagline ** {
    color: var(--color-secondary); /* Magenta für TAAD-Hervorhebung */
}

.acronym-explanation {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* --- Call-to-Action Button Styling --- */
.cta-button {
    background-color: var(--color-secondary); 
    color: var(--color-text-light);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px; /* Abgerundeter, designerischer Button */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(163, 44, 102, 0.4);
}

.cta-button:hover {
    background-color: var(--color-primary); /* Wechselt die Farbe beim Hover */
    transform: translateY(-3px);
}

/* --- Footer Styling --- */
.main-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    background-color: rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

/* Keyframes für die Fade-In-Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Query für kleinere Bildschirme (Responsiveness) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    .slogan-box {
        padding: 20px;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* --- Gemini Bot Section Styling --- */
.gemini-bot-section {
    padding: 80px 20px;
    background-color: #2a2a2a; /* Etwas heller als der Hintergrund */
    text-align: center;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}

.gemini-bot-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.gemini-bot-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0.8;
}

.gemini-bot-section .coming-soon {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.6;
    font-style: italic;
}

/* Styling für das Chat-Interface (Platzhalter) */
.gemini-chat-interface {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--color-background); /* Dunkler Hintergrund für den Chat */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 450px; /* Feste Höhe für Chat-Fenster */
    overflow: hidden; /* Verhindert Scrollleisten am Hauptcontainer */
    border: 1px solid var(--color-secondary); /* Akzentrahmen */
}

.gemini-chat-interface .placeholder-message {
    color: var(--color-accent);
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1; /* Nimmt den verfügbaren Platz ein */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-window {
    flex-grow: 1; /* Nimmt den restlichen Platz ein */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Scrollbar für Chat-Nachrichten */
    padding-right: 10px; /* Platz für Scrollbar */
    margin-bottom: 15px;
}

/* Scrollbar-Styling (Webkit-Browser) */
.chat-window::-webkit-scrollbar {
    width: 8px;
}

.chat-window::-webkit-scrollbar-track {
    background: #333; 
    border-radius: 10px;
}

.chat-window::-webkit-scrollbar-thumb {
    background: var(--color-primary); 
    border-radius: 10px;
}

.chat-window::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary); 
}


.message-container {
    padding: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 80%;
    text-align: left;
}

.bot-message {
    background-color: #3f3f3f; /* Dunkleres Grau für Bot */
    color: var(--color-text-light);
    align-self: flex-start; /* Links ausgerichtet */
    margin-right: auto;
    border-bottom-left-radius: 5px; /* Etwas eckiger unten links */
}

.user-message {
    background-color: var(--color-primary); /* Blau für User-Nachrichten */
    color: var(--color-text-light);
    align-self: flex-end; /* Rechts ausgerichtet */
    margin-left: auto;
    border-bottom-right-radius: 5px; /* Etwas eckiger unten rechts */
}

.chat-message p {
    margin: 0;
    font-size: 0.95rem;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input[type="text"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 25px;
    background-color: #333;
    color: var(--color-text-light);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input[type="text"]:focus {
    border-color: var(--color-accent);
}

.chat-input button {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: not-allowed; /* Zuerst deaktiviert */
    opacity: 0.7;
    transition: background-color 0.3s ease;
}

/* Media Queries für Responsiveness des Chat-Bereichs */
@media (max-width: 768px) {
    .gemini-bot-section h2 {
        font-size: 2rem;
    }

    .gemini-chat-interface {
        height: 400px;
        padding: 15px;
    }

    .chat-input {
        flex-direction: column;
    }

    .chat-input button {
        width: 100%;
    }
}

/* --- Header & Logo Styling (Anpassungen für Navigation) --- */
.main-header {
    justify-content: space-between; /* Logo links, Navi rechts */
    padding: 20px 40px;
    background-color: var(--color-background); /* Sicherstellen, dass der Header einen Hintergrund hat */
}

.logo-container {
    display: flex; /* Für bessere Ausrichtung des Logos */
    align-items: center;
}

/* --- Navigations Styling --- */
.main-nav ul {
    list-style: none; /* Entfernt die Standard-Aufzählungszeichen */
    display: flex; /* Ordnet die Elemente nebeneinander an */
    gap: 30px; /* Abstand zwischen den Navigationspunkten */
}

.main-nav a {
    text-decoration: none; /* Entfernt die Unterstreichung */
    color: var(--color-text-light);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative; /* Für den Hover-Effekt */
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-accent); /* Goldene Farbe beim Hover */
}

/* Unterstrich-Effekt beim Hover für Navigation */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--color-secondary); /* Magenta Unterstrich */
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Media Query für kleinere Bildschirme (Responsive Navigation) --- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column; /* Stapelt Logo und Navi untereinander */
        padding: 15px 20px;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column; /* Stapelt Navigationspunkte untereinander */
        gap: 15px; /* Abstand anpassen */
        margin-top: 20px;
        align-items: center; /* Zentriert die Navigationspunkte */
    }

    .main-nav a {
        font-size: 1rem;
    }

    .main-nav a::after {
        left: 50%; /* Zentriert den Unterstrich bei kleineren Bildschirmen */
        transform: translateX(-50%);
    }
}

/* --- Allgemeine Sektionen --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 80px 0;
    text-align: center;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 40px;
}

/* --- About Section --- */
.about-section {
    background-color: var(--color-background);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-logo-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.about-logo-icon:hover {
    transform: rotate(5deg) scale(1.05);
}

/* --- Services Section --- */
.services-section {
    background-color: #2a2a2a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #1c1c1c;
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid var(--color-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(163, 44, 102, 0.3);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--color-background);
}

.contact-form {
    max-width: 500px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: var(--color-text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.contact-form textarea {
    resize: vertical; /* Nur vertikale Größenänderung erlauben */
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr; /* Spalten untereinander stapeln */
        text-align: center;
        gap: 30px;
    }

    .about-image {
        order: -1; /* Bild über den Text verschieben */
    }
    
    .about-logo-icon {
        margin: 0 auto;
    }
}