/* Schriftarten */
@font-face {
    font-family: 'SpaceMono';
    src: url('fonts/SpaceMono.ttf') format('truetype');
}
@font-face {
    font-family: 'RedHat';
    src: url('fonts/RedHat.ttf') format('truetype');
}
@font-face {
    font-family: 'Garage';
    src: url('fonts/Garage.otf') format('opentype');
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat.ttf') format('truetype');
}

/* Allgemein */
html, body {
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

/* Hintergrundbild */
#background {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 110vw;
    height: 110vh;
    background: url('images/hg_contact.jpg') no-repeat center center / cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* ------------------ */
/* Navigation */
/* ------------------ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #e2f4f6;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #250c5c;
    height: 8vh;
    align-items: center;
}

nav ul li {
    flex: 1;
    text-align: center;
    border-right: 2px solid #250c5c;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul li:last-child {
    border-right: none;
}

nav ul li a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #250c5c;
    font-family: 'RedHat', serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2vw;
}

nav ul li a:hover {
    font-style: italic;
}

/* ------------------ */
/* HEADER */
/* ------------------ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 500;
    height: auto; 
    margin-top: 19vh;

}

/* BURGER MENU */
.menu-toggle {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 1vh;
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #250c5c;
    transition: opacity 0.5s ease;
}

.menu-close {
    display: none;
}  

/* Container Layout */
.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    height: auto;
    width: 100vw;
    margin-top: 5vh;
    gap: 1vw;
    overflow: hidden;
    z-index: 10;
    position: center;
}

/* FAQ Section */
.faq {
    flex: 1;
    padding: 2vw;
    border-radius: 1vw;
    overflow-y: auto;
    z-index: 10;
}

.faq h2 {
    font-family: 'Garage', serif;
    text-transform: uppercase;
    color: #250c5c;
    text-shadow: 0.1vw 0.1vw 0.2vw rgba(0, 0, 0, 0.4);
    font-size: 2em;
    margin-bottom: 1vh;
    text-align: left;
}

.faq-item {
    margin-bottom: 0.5em;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #250c5c;
    color: #e2f4f6;
    border: none;
    padding: 1em;
    cursor: pointer;
    font-family: 'SpaceMono', sans-serif;
    font-size: 1em;
}

.faq-answer {
    display: none;
    background: #e2f4f6CC;
    color: #250c5c;
    padding: 0.55em;
    margin-top: 0.5em;
    font-family: 'SpaceMono', serif;
}

/* Contact Form Section */
.contact-form {
    flex: 1;
    padding: 2vw;
    overflow-y: auto;
    z-index: 10;
}

.contact-form h2 {
    font-family: 'Garage', serif;
    text-transform: uppercase;
    color: #250c5c;
    text-shadow: 0.2vw 0.2vw 0.3vw rgba(0, 0, 0, 0.4);
    font-size: 2em;
    margin-bottom: 1vh;
    text-align: left;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 0.1em;
    padding: 1em;
    border: 0.1em solid #250c5c;
    background-color: #e2f4f6CC;
    color: #250c5c;
    font-family: 'SpaceMono', sans-serif;
    font-size: 1em;
}

.contact-form textarea {
    resize: none;
    height: 5em;
}

.contact-form button {
    background: #250c5c;
    color: #e2f4f6;
    padding: 1em;
    cursor: pointer;
    font-family: 'SpaceMono', sans-serif;
    font-weight: bold;
    font-size: 1em;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #e2f4f6;
    color: #250c5c;
}

/* Form Steps Styling */
.form-step {
    display: none;
    flex-direction: column;
    font-family: 'SpaceMono', sans-serif;
    text-align: left;
    gap: 0.5em;
}

.form-step.active {
    display: flex;
}

/* Buttons */
.button-container {
    display: flex;
    justify-content: space-between;
}

.next-btn, .prev-btn, .contact-form button[type="submit"] {
    background: #250c5c;
    color: #e2f4f6;
    border: none;
    padding: 1em;
    cursor: pointer;
    font-family: 'SpaceMono', sans-serif;
    font-weight: bold;
    font-size: 1em;
    transition: 0.3s;
    flex: 1;
    text-align: center;
}

.next-btn:hover, .prev-btn:hover, .contact-form button[type="submit"]:hover {
    background: #e2f4f6;
    color: #250c5c;
}

/* Nachricht für Fehler oder Erfolg */
.form-message {
    margin-top: 1.5em;
    font-family: 'SpaceMono', sans-serif;
    font-size: 1em;
    color: red;
    text-align: center;
}

/* ------------------ */
/* RESPONSIVE ANPASSUNGEN */
/* ------------------ */

/* Desktop */
@media screen and (min-width: 1025px) {
    html, body {
        overflow: auto; 
        height: auto;
    }

    .menu-toggle {
        display: none;
    }

    .menu-toggle img {
        display: none;
    }
}

/* Smartphones */
@media screen and (max-width: 768px) {
     body {
        padding-top: 0; 
        margin: 0;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 0vh;
        padding-bottom: 0;
        padding-top: 0;
    }

    .menu-toggle {
        display: block !important;
    }

    .menu-toggle img {
        width: 8rem;
    }

    .menu-close {
        display: block;
        margin: 70vh auto 0 auto;
        background: none;
        border: none;
        color: #250c5c;
        font-size: 5rem;
        cursor: pointer;
    }

    nav {
        display: none;
        position: fixed;
        right: 0;
        width: auto; 
        height: 100%; 
        background-color: #e2f4f6;
        text-align: center;
        z-index: 100;
    }

    nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        border-bottom: 0;

    }

    nav ul li {
        text-align: center;
        padding: 2vh;
        border-right: 0;

    }

    nav ul li a {
        font-size: 9vw;
    } 

    .container {
        flex-direction: column;
        height: auto;
        margin-top: 15vh;
        margin-bottom: 5vh;
    }
    
      .faq,
      .contact-form {
        width: 90vw;
        max-height: none;
        margin: 0 auto;
    } 

    .contact-form h2 {
        text-align: center;
    }

    .faq h2 {
        text-align: center;
    }
}