body {
    font-family: "Gill Sans", sans-serif;
    padding: 0;
    margin: 0;
    background-color: #f4f4f4;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: white;
    color: #333;
    box-shadow: 0 4px 15px #0000002a;
    padding: 5px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 45px;
    height: auto;
    margin-right: 10px;
}

.site-title {
    font-size: 36px;
    background: linear-gradient(to right, #975549, #e64147);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #333;
    bottom: -5px;
    left: 50%;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.burger {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    margin-right: 30px; 
    padding: 10px; 
    background-color: #ffffffcc; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px #00000033; 
    transition: background-color 0.3s, transform 0.3s; 
}

.burger:hover {
    background-color: #ffffff; 
    transform: scale(1.05); 
}

.burger .line {
    width: 35px; 
    height: 4px; 
    margin: 4px 0;
    transition: background-color 0.3s; 
    background: linear-gradient(to right, #d8269d, #f57f10);
}

main {
    flex: 1;
    padding: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

#background-video {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #bfced38a;
    z-index: -1; 
}

.contact-form label[for="anrede"] {
    margin-bottom: -20px;
}
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    margin-bottom: 50px;
    padding: 20px;
    background: #99a3aa8e; 
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 15px #00000033;
    display: flex;
    flex-direction: column;
    transition: border-radius 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    opacity: 0; 
    animation: fadeInUp 1s ease-out forwards; 
    gap: 15px;
    align-items: center;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.contact-form:hover {
    border-radius: 30px;
    box-shadow: 0 4px 15px #0000004b;
    background-color: #97a4ad91;
}

.custom-dropdown {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.selected {
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
}


.arrow {
    margin-left: 10px;
    font-size: 20px;
}

.options {
    display: none;
    position: absolute;
    top: 100%;
    width: 50%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background: #fff;
    z-index: 10;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
}

.option {
    padding: 10px;
    cursor: pointer;
    text-align: left;
}

.option:hover {
    background-color: #f0f0f0;
}

.contact-form label {
    display: block;
    margin-bottom: -10px;   
    margin-top: 10px;   
    font-weight: bold;
    text-align: left;
    width: 99%;
}

.contact-form select,
.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    
}

.contact-form textarea {
    height: 200px;
}

.character-count-container {
    display: flex;
    justify-content: space-between;
    width: 100%; 
    margin-top: -5px; 
    margin-bottom: 50px; 
}

.char-count {
    text-align: right;
    font-size: 13px;
    font-weight: 700;  
    color: #424d58;
}

.required {
    color: red;
    margin-left: 5px;
}

.legend {
    font-size: 13px;
    font-weight: 700; 
    color: red;
}

.contact-form-button {
    padding: 15px 20px;
    background-color: #f5f5f5;
    border: 2px solid #8daaac;
    box-shadow: 0px 4px 15px #00000080;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

.contact-form-button:hover {
    color: white;
    box-shadow: 0px 6px 25px #0000008c;
}

.gradient-text {
    color: transparent;
    background-image: linear-gradient(to right, #3f77b4, #3aa9af);
    background-clip: text;
    -webkit-background-clip: text;
    transition: letter-spacing 0.5s, transform 0.3s ease;
    display: inline-block;
    font-weight: bold;
}

.contact-form-button:hover .gradient-text {
    letter-spacing: 7px;
}




footer {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 -4px 15px #0000002a;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin: 0;
}

@media (max-width: 500px) {
    .burger {
        display: block; 
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px; 
        left: 20px; 
        width: max-content; 
        width: 100%; 
        padding: 10px; 
        max-width: 200px; 
        background-color: #fffffff2; 
        box-shadow: 0 4px 20px #00000033; 
        border-radius: 8px; 
        transition: transform 0.3s ease, opacity 0.3s ease; 
        transform: translateY(-20px) translateX(-100%); 
        opacity: 0; 
        z-index: 1; 
    }
    
    .nav-links.active {
        display: flex; 
        transform: translateY(0) translateX(0); 
        opacity: 1; 
    }
    
    .nav-links li {
        margin: 5px 0; 
        text-align: left; 
    }
    
    .nav-links li a {
        color: #333; 
        text-decoration: none; 
        padding: 12px 15px; 
        display: block; 
        padding: 10px; 
        border-radius: 5px; 
        transition: background-color 0.3s, transform 0.3s; 
    }
    
    .nav-links li a:hover {
        background-color: #0000001a; 
        transform: scale(1.05); 
    }
}
