@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


:root {
    --grey: #333;
    --white: #fff;
    --purple: #A020F0;
    --blue: #4169e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: #fff;
}

.content {
    width: 100%;
    height: 100%;

    background-image: url(../Assets/background-kontakt.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; 
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.875rem 8%;
}
    
.row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 2rem;
    max-width: 68.75rem;

    border-radius: 1rem;
    background-color: var(--white);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

section.col {
    display: flex;
    flex-direction: column;
}

section.left {
    flex-basis: 35%;
    min-width: 20rem;
    margin-right: 3.75rem;
}

section.right {
    flex-basis: 60%;
}

.contactTitle h1 {
    font-family: "Rubik", sans-serif;
    font-size: 2rem;
    color: var(--grey);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.contactTitle h1::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 1px;
    background-color: #888;
    top: 120%;
    left: 0;
}

.contactTitle h1::after {
    content: '';
    position: absolute;
    width: 20%;
    height: 3px;
    background: linear-gradient(133deg, rgba(160,32,240,1) 8%, rgba(65,105,225,1) 100%);
    top: calc(120% - 1px);
    left: 0;
}

.contactTitle p {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    color: var(--grey);
    opacity: 0.7;
    letter-spacing: 1.2;
    padding-bottom: 1.3rem;
}

.contactInfo {
    margin-bottom: 1rem;
}

.iconGroup {
    display: flex;
    align-items: center;
    margin: 1.6rem 0px;
}

.contactIcon {
    padding: 0.4rem;
    margin-right: 1.25rem;
    position: relative;
}

.contactIcon i{
    font-size: 1.25rem;
}

.details span {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;

    display: block;
    color: var(--grey);
}

.details span:nth-child(1) {
    color: var(--grey);
    opacity: 0.7;
}

.details span a {
    text-decoration: none;
    color: var(--grey);
}

.details span a:hover {
    text-decoration: underline;
}

.kontakt-social {
    font-family: "Outfit", sans-serif;
    font-weight: bold;
    color: var(--grey);
}

.socialMedia {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    margin: 0.7rem 0 1.25rem;
    column-gap: 1rem;
}

.socialMedia a {
    width: 2.2rem;
    height: 2.2rem;
    text-decoration: none;
    text-align: center;
    border-radius: 0.3rem;
    background: linear-gradient(133deg, rgba(160,32,240,1) 8%, rgba(65,105,225,1) 100%);
    transition: 0.4s;
}

.socialMedia i {
    color: var(--white);
    font-size: 18px;
    line-height: 35px;
    border: 1px solid transparent;
    transition: 0.4s;
}

.socialMedia a:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.6);
}


.messageForm {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 2rem;
}

.inputGroup {
    margin: 1rem 0px;
    position: relative;
}

.half {
    flex-basis: 48%;
}

.full {
    flex-basis: 100%;
}

.messageForm input, .messageForm textarea {
    font-family: "Rubik", sans-serif;
    font-size: 18px;

    width: 100%;
    padding: 2px 0px;

    background-color: var(--white);
    color: var(--grey);

    border: none;
    outline: none;
    border-bottom: 1px solid var(--grey);
}

.messageForm textarea {
    height: 13.75rem;
    resize: none;
    display: block;
}

.messageForm textarea::-webkit-scrollbar  {
    background-color: var(--grey);
    border-radius: 15px;
    width: 5px;
}

.inputGroup label {
    font-family: "Rubik", sans-serif;
    font-size: 1rem;
    color: var(--grey);
    
    left: 0;
    bottom: 4px;
    
    position: absolute;
    pointer-events: none;
    transition: 0.4s;
}

.nachricht {
    top: 2px;
}


.inputGroup input:focus ~ label, .inputGroup textarea:focus ~ label,
.inputGroup input:valid ~ label, .inputGroup textarea:valid ~ label  {
    transform: translateY(-30px);
    font-size: 1rem;
}

.inputGroup button {
    font-family: "Rubik", sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: #ddd;
    
    outline: none;
    border: none;

    padding: 0.9rem 1.3rem;
    border-radius: 25px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
    background: linear-gradient(133deg, rgba(160,32,240,1) 8%, rgba(65,105,225,1) 100%);
    
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.inputGroup button:hover {
    scale: 1.05;
}

@media(max-width: 1100px) {
    .half {
        flex-basis: 100%;
    }
}

@media(max-width: 900px) {
    .row {
        flex-wrap: wrap;
    }

    section.left, section.right {
        flex-basis: 100%;
        margin: 0px;     
    min-width: 2rem;
    }
}

@media(max-width: 650px) {
    .inputGroup label {
        left: .3rem;
        bottom: .4rem;
    }
}

@media(max-width: 500px) {
    .content {
        background-image: none;
    }

    .inputGroup {
        text-align: center;
    }
}

@media(max-width: 425px) {

    .contactTitle h1 {
        font-size: 1.7rem;
    }

    .contactTitle p {
        font-size: 0.8rem;
    }
    
    .socialMedia {
        justify-content: center;
    }
}
