body {
    font-family: 'Share Tech Mono', 'Anonymous Pro', monospace, Arial, sans-serif;
    background: #0a192f;
    color: #fff;
    margin: 0;
    padding: 0;
}

/*
Modernes Kontaktformular: Card-Look, mittig zwischen Navbar und Footer, Labels links neben Feldern, responsiv, Switch, Animation
*/
body.kontakt-bg {
    background: url('../bilder/card2-image.png') center top no-repeat, linear-gradient(135deg, #eaf6ff 0%, #b3d8ff 100%);
    background-size: cover, cover;
    min-height: 100vh;
    margin: 0;
    font-family: 'Share Tech Mono', 'Anonymous Pro', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
}

.contact-wrapper {
    background: #fff;
    max-width: 650px;
    width: 100%;
    border-radius: 22px;
    margin-top: 150px;
    box-shadow: 0 12px 40px 0 rgba(10, 89, 168, 0.18), 0 2px 8px 0 rgba(10, 89, 168, 0.10);
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s cubic-bezier(.39,.575,.56,1.000);
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.contact-wrapper h1 {
    text-align: center;
    color: #0a59a8;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

form#contactForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.form-group label {
    width: 160px;
    min-width: 120px;
    text-align: right;
    margin-right: 1.2rem;
    color: #0a59a8;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    flex: 1 1 0;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #b3d8ff;
    background: #f6fbff;
    color: #222;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 rgba(10, 89, 168, 0.06);
    margin-bottom: 0;
    text-align: left;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border: 2px solid #0a59a8;
    box-shadow: 0 0 0 2px #b3d8ff99;
    background: #eaf6ff;
}

.form-group select {
    cursor: pointer;
}

button[type="submit"] {
    background: linear-gradient(90deg, #0a59a8 60%, #64ffda 100%);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px 0 rgba(10, 89, 168, 0.13);
    letter-spacing: 1px;
    margin: 0;
}

button[type="submit"]:hover {
    background: linear-gradient(90deg, #003bb9 60%, #52e0c4 100%);
    box-shadow: 0 4px 18px 0 rgba(10, 89, 168, 0.18);
}

.switch-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

.switch-label {
    color: #0a59a8;
    font-weight: 500;
    font-size: 1.04rem;
    margin-right: 0.3rem;
    min-width: unset;
    text-align: left;
    margin-bottom: 0;
    white-space: nowrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 26px;
    height: 14px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #b3d8ff;
    transition: .2s;
    border-radius: 14px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 1px 2px #0a59a833;
}

input:checked + .slider {
    background-color: #0a59a8;
}

input:checked + .slider:before {
    transform: translateX(12px);
}

.slider.round {
    border-radius: 14px;
}

.form-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
}

#formResult {
    margin-top: 1.2rem;
    font-size: 1.13rem;
    min-height: 1.5em;
    text-align: center;
    color: #0a59a8;
    font-weight: 500;
}

@media (max-width: 800px) {
    .contact-wrapper {
        padding: 1.2rem 0.5rem;
        max-width: 99vw;
    }
    .form-group label, .switch-label {
        min-width: 90px;
        font-size: 0.98rem;
        margin-right: 0.5rem;
    }
    .form-group input, .form-group select, .form-group textarea {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .contact-wrapper {
        padding: 0.5rem 0.2rem;
    }
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .form-group label, .switch-label {
        text-align: left;
        margin-bottom: 0.3rem;
        margin-right: 0;
    }
    .switch-group, .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    button[type="submit"] {
        width: 100%;
    }
}
