/* Grundlegende Resets & Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #7289DA; /* Discord-Blau für Akzente */
    --secondary-color: #2C2F33; /* Dunkles Grau für Hintergrund */
    --text-color: #EEEEEE; /* Helle Textfarbe */
    --light-gray: #B9BBBE; /* Sekundäre Textfarbe */
    --darker-gray: #23272A; /* Noch dunkler für Footer/Kontrast */
    --accent-blue: #00BFFF; /* Ein helleres Blau für Call-to-action */
    --form-bg: #36393F; /* Hintergrundfarbe für Formularfelder */
    --border-color: #4F545C; /* Randfarbe für Formularfelder */
    --success-color: #4CAF50;
    --error-color: #F44336;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    scroll-behavior: smooth; /* Sanftes Scrollen beim Klick auf Ankerlinks */
}

/* Container für Inhalt (Zentrierung) */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Volle Bildschirmhöhe */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    background: url('https://via.placeholder.com/1920x1080/2C2F33/B9BBBE?text=Hintergrundbild') no-repeat center center/cover; /* Platzhalterbild */
    /* Ersetze die URL oben mit dem Pfad zu deinem tatsächlichen Bild, z.B. 'hero-background.jpg' */
    animation: fadeIn 1.5s ease-out; /* Einfache Fade-In Animation */
    overflow: hidden; /* Wichtig für den Scroll-Effekt des Inhalts */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dunkle Überlagerung */
    z-index: 0; /* Stellt sicher, dass das Overlay unter dem Inhalt liegt */
}

.hero-content {
    z-index: 1; /* Stellt sicher, dass der Inhalt über dem Overlay liegt */
    animation: slideInUp 1s ease-out; /* Leichte Aufwärtsbewegung beim Laden */
    transition: transform 0.05s linear, opacity 0.05s linear; 
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: var(--light-gray);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px; /* Abgerundete Ecken */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: var(--accent-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.primary-btn:hover {
    background-color: #00A3D9; /* Etwas dunkler beim Hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.4);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.3);
}

.submit-btn:hover {
    background-color: #5B7ADF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(114, 137, 218, 0.4);
}

/* Sektionen */
section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    display: inline-block; /* Für Unterstrich-Effekt */
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

section .subtitle {
    font-size: 1.1em;
    color: var(--light-gray);
    margin-bottom: 40px;
}

/* Neue Stile für Service-Auswahl */
.services-section {
    background-color: var(--darker-gray); /* Einheitlicher Hintergrund wie Kontaktformular-Sektion */
}

.secondary-btn {
    background-color: var(--form-bg); /* Dunklerer Hintergrund */
    color: var(--text-color);
    border: 1px solid var(--border-color);
    margin: 10px;
    padding: 12px 25px; /* Etwas kleiner als primary-btn */
}

.secondary-btn:hover {
    background-color: var(--border-color); /* Beim Hover etwas heller */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.secondary-btn.active { /* Aktiver Button */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.3);
}

.service-selection {
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap; /* Damit Buttons umbrechen können auf kleinen Bildschirmen */
    justify-content: center;
    gap: 15px; /* Abstand zwischen den Buttons */
}

.service-description {
    background-color: var(--form-bg);
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: left;
    color: var(--light-gray);
    min-height: 100px; /* Mindesthöhe für die Beschreibung */
    display: flex; /* Für Zentrierung bei wenig Inhalt */
    align-items: center; /* Vertikale Zentrierung */
    justify-content: center; /* Horizontale Zentrierung */
    font-style: italic;
    opacity: 0; /* Standardmäßig unsichtbar */
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-description.show {
    opacity: 1;
    transform: translateY(0);
}

.form-info {
    background-color: rgba(114, 137, 218, 0.1); /* Leichter Akzent-Hintergrund */
    border-left: 5px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    color: var(--light-gray);
    text-align: left;
    font-size: 0.95em;
}

/* Verstecken der Service-Felder */
.service-fields {
    display: none;
}


/* Kontaktformular */
.contact-section {
    background-color: var(--darker-gray);
}

.contact-form {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto;
    text-align: left; /* Text in den Feldern linksbündig */
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--light-gray);
    font-size: 1.05em;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--form-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.3);
}

.form-group textarea {
    resize: vertical; /* Nur vertikal skalierbar */
    min-height: 150px;
}

/* Formular Nachrichten */
.form-message {
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    display: none; /* Standardmäßig ausgeblendet */
    text-align: center;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-gray);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-blue);
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    section h2 {
        font-size: 2.2em;
    }
    .contact-form {
        padding: 30px;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    /* Zusätzliche Anpassung für mobile Hero Section */
    .hero-section {
        padding: 0 15px; /* Etwas Innenabstand für kleine Bildschirme */
    }
    .hero-content {
        max-width: 100%; /* Sicherstellen, dass der Inhalt nicht überläuft */
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    section {
        padding: 60px 0;
    }
    section h2 {
        font-size: 1.8em;
    }
    .contact-form {
        padding: 20px;
    }
    .service-selection {
        flex-direction: column; /* Buttons untereinander auf kleinen Bildschirmen */
        align-items: center;
    }
}