/* style_contact.css */

/* Allgemeine Grundeinstellungen */
html {
    box-sizing: border-box;
    height: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Schriftarten */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

/* Grundlegende Styles (Desktop) */
body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #050608;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.contact {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 20px 20px 0;
}

.contact-container {
    background-color: #ffffff;
    padding: 2em;
    border-radius: 10px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 2em;
    margin-bottom: 2em;
    position: relative;
}

.form-logo {
    position: absolute;
    top: 20px;
    left: 20px;
}

.form-logo-img {
    max-width: 290px;
    height: auto;
    display: block;
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 1.75em;
    font-weight: 500;
    margin-top: 150px;
}

.form-group {
    margin-bottom: 1.2em;
}

.form-group label {
    display: block;
    margin-bottom: 0.3em;
    color: #605c5c;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.form-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5em;
}

.btn-submit {
    padding: 0.7em 1.5em;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    background-color: #0000ff;
    color: #ffffff;
}

.btn-submit:hover {
    background-color: #0000cc;
}

.cta-container {
    text-align: center;
}

.back-button {
    display: inline-block;
    background-color: #e6f0ff;
    color: #000000;
    padding: 1.1em 1em;
    text-decoration: none;
    border: 1px solid #0000ff;
    border-radius: 5px;
    font-size: 19px;
    font-weight: 500;
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.back-button:hover {
    background-color: #cce0ff;
}

/* Footer-Styles (Desktop) */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #0000ff;
    border-top: 1px solid #0000ff;
    width: 100%;
    position: relative;
    min-height: 150px;
    flex-shrink: 0;
    z-index: 10;
}

.footer-left {
    z-index: 15;
}

.footer-logo {
    max-width: 290px;
    height: auto;
    display: block;
    margin-bottom: 0 !important;
}

.footer-text {
    position: static;
    transform: none;
    margin: 0 !important;
    padding-top: 5px !important;
    font-size: 18px;
    color: #fff;
    text-align: center;
    line-height: 1 !important;
    white-space: nowrap;
    display: block;
    z-index: 12;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 20;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
    margin-top: 30px;
    z-index: 25;
}

.footer-center a {
    text-decoration: none;
    color: #fff;
    font-size: 14px !important;
    pointer-events: auto !important;
    position: relative;
    flex-shrink: 0;
}

.footer-center a:hover {
    text-decoration: underline;
}

.footer-center .footer-copyright {
    font-size: 14px;
    color: #fff;
}

/* Responsive Design: Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .contact-container {
        max-width: 90%;
        padding: 1.5em;
        margin-top: 1.5em;
        margin-bottom: 1.5em;
    }
    .form-logo-img {
        max-width: 260px;
    }
    .contact-container h2 {
        margin-top: 200px;
        font-size: 1.6em;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.95em;
        padding: 0.4em;
    }
    .form-buttons {
        justify-content: center;
        margin-bottom: 1.5em;
    }
    .btn-submit {
        padding: 0.6em 1.2em;
    }
    .footer {
        padding: 15px;
        min-height: 120px;
        z-index: 10;
    }
    .footer-logo {
        max-width: 260px;
    }
    .footer-text {
        position: static;
        transform: none;
        margin: 0 !important;
        padding-top: 5px !important;
        font-size: 17px;
        z-index: 12;
    }
    .footer-center {
        z-index: 20;
    }
    .footer-links {
        gap: 25px;
        margin-top: 30px;
        z-index: 25;
    }
}

/* Responsive Design: Smartphone mittel (max-width: 767px) */
@media (max-width: 767px) {
    .contact-container {
        max-width: 90%;
        padding: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
    }
    .form-logo-img {
        max-width: 220px;
    }
    .contact-container h2 {
        margin-top: 180px;
        font-size: 1.4em;
        margin-bottom: 0.6em;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.9em;
        padding: 0.3em;
    }
    .form-buttons {
        justify-content: center;
        margin-bottom: 0.5em;
    }
    .btn-submit {
        padding: 0.5em 1em;
        font-size: 0.9em;
        width: auto;
        display: inline-block;
    }
    .cta-container {
        margin-bottom: 0.2em;
    }
    .footer {
        padding: 10px;
        flex-direction: column;
        align-items: center;
        min-height: auto;
        z-index: 10;
        -webkit-tap-highlight-color: transparent;
        position: relative !important;
    }
    .footer-left {
        margin-bottom: 10px !important;
        z-index: 15;
    }
    .footer-logo {
        max-width: 200px;
    }
    .footer-text {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        padding-top: 3px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        color: #fff;
        z-index: 12;
    }
    .footer-center {
        padding-top: 0;
        z-index: 20;
        width: 100%;
    }
    .footer-links {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 8px !important;
        margin-bottom: 10px !important;
        padding: 0 5px !important;
        z-index: 25 !important;
        touch-action: manipulation !important;
        white-space: nowrap !important;
        position: relative !important;
    }
    .footer-center a {
        padding: 6px !important;
        display: inline-block !important;
        font-size: 13px !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        flex-shrink: 0 !important;
    }
    .footer-center .footer-copyright {
        font-size: 12px;
    }
}

/* Responsive Design: Smartphone klein (max-width: 480px) */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    .contact-container {
        max-width: 90%;
        padding: 0.8em;
        margin-top: 0.8em;
        margin-bottom: 0.8em;
    }
    .form-logo-img {
        max-width: 180px;
    }
    .contact-container h2 {
        margin-top: 160px;
        font-size: 1.3em;
        margin-bottom: 0.5em;
    }
    .form-group {
        margin-bottom: 1em;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.85em;
        padding: 0.25em;
    }
    .form-buttons {
        justify-content: center;
        margin-bottom: 0.3em;
    }
    .btn-submit {
        padding: 0.4em 0.8em;
        font-size: 0.85em;
        width: auto;
        display: inline-block;
    }
    .cta-container {
        margin-bottom: 0.1em;
    }
    .footer {
        padding: 8px;
        min-height: auto;
        z-index: 10;
        -webkit-tap-highlight-color: transparent;
        position: relative !important;
    }
    .footer-left {
        margin-bottom: 8px !important;
        z-index: 15;
    }
    .footer-logo {
        max-width: 180px;
    }
    .footer-text {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        padding-top: 2px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        color: #fff;
        z-index: 12;
    }
    .footer-center {
        padding-top: 0;
        z-index: 20;
        width: 100%;
    }
    .footer-links {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 6px !important;
        margin-bottom: 8px !important;
        padding: 0 4px !important;
        z-index: 25 !important;
        touch-action: manipulation !important;
        white-space: nowrap !important;
        position: relative !important;
    }
    .footer-center a {
        padding: 5px !important;
        display: inline-block !important;
        font-size: 12px !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        flex-shrink: 0 !important;
    }
    .footer-center .footer-copyright {
        font-size: 11px;
    }
}