/* contact form*/
.contactContainer label {
    font-size: small;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-brand);
}

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */
    border: 1px solid #ccc; /* Gray border */
    border-radius: 4px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical; /* Allow the user to vertically resize the textarea (not horizontally) */
    background-color: var(--contactBackgroundColor);
    color: var(--color-text);
}

/* Style the submit button with a specific background color etc */
input[type=submit], .submit {
    background-color: var(--color-brand-subtle);
    color: var(--color-text);
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover, .submit:hover {
    background-color: var(--color-brand);
    color: var(--color-brand-subtle);
}

input:required:invalid, select:required:invalid, textarea:required:invalid {
    border-color: #a51919;
}

/* Add a background color and some padding around the form */
.contactContainer {
    border-radius: 5px;
    padding: 0;
}

.contact-floor-slide {
    position: relative;
}

.contact-floor-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.contact-floor-button {
    position: absolute;

    /* Mitte des unteren Drittels */
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    z-index: 5;

    width: clamp(150px, 22vw, 280px);
    padding: clamp(0.6rem, 1.2vw, 1rem) clamp(1rem, 2vw, 2rem);

    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    font-size: clamp(0.7rem, 1vw, 1rem);
    font-weight: 700;

    color: var(--color-text);
    background-color: var(--color-brand);

    border: 1px solid var(--color-bg);
    border-radius: 12px;

    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-md);

    transition: background-color 0.25s ease, transform 0.25s ease;
}

.contact-floor-button:hover {
    background-color: var(--color-brand);
    transform: translate(-50%, -50%) scale(1.04);
}

@media (max-width: 600px) {
    .contact-floor-button {
        width: clamp(130px, 45vw, 220px);
        font-size: clamp(0.65rem, 2.5vw, 0.9rem);
        top: 50%;
    }
}

#contact-form {
    scroll-margin-top: calc(var(--menu-height) + 24px);
}