:root {
    --lila: #bab9ff;
    --dark-lila: #948BD8;
    --light-lila: #E9E8F7;
    --black: #333333;
    --space-section: clamp(6rem, 5vw, 12rem);
    --space-section-sm: clamp(3rem, 5vw, 6rem);
    --space-section-xl: clamp(7rem, 5vw, 14rem);
}

@font-face {
    font-family: 'Aleo';
    src: url('/fonts/Aleo.woff2');
} 

@font-face {
    font-family: 'Archivo';
    src: url('/fonts/Archivo.woff2');
} 

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

nav {
    width: 100%;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: max(8vw, 150px);
}

body {
    font-family: 'Archivo';
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 1%;
    color: var(--black);
}

.page-datenschutz h3 {
    margin-top: 2rem;
}

.page-datenschutz h2 {
    margin-top: 4rem;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Aleo';
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.074rem, 6vw, 4.209rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: clamp(1.8rem, 5vw, 3rem);
}

.hero-container h1 {
    color: #fff;
}

h2 {
    font-size: clamp(1.5463rem, 6vw, 2.448rem);
}


h2::after {
    content: "";
    display: block;
    width: 140px;
    height: 6px;
    background-color: var(--dark-lila);
    margin-block: clamp(1rem, 5vw, 1.4rem);
}

h3 {
    font-size: clamp(1.3rem, 5vw, 1.840rem);
    margin-bottom: 1rem;
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.563rem);
    margin-top: clamp(1rem, 5vw, 2rem);
    margin-bottom: 1rem;
}

h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

h6 {
    font-size: clamp(1rem, 5vw, 1.15rem);
    margin: 1.6rem 0 0.5rem 0;
}

h5::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--dark-lila);
    margin: .8rem 0;
}

p.intro {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.4;
}

section {
    padding-block: var(--space-section-sm);
}

section:nth-of-type(2) {
    padding-block: var(--space-section-sm);
}

section:last-of-type {
    padding-block: var(--space-section-sm);
}

.lila {
    background-color: #E9E8F7;
    background-image: radial-gradient(circle at 15% 15%, #e1dfed 0%, #E9E8F7 50%, #d5d1f0 100%);
    background-attachment: fixed;
}

.light-lila {
    background-color: #f1f1f1;
    background-attachment: fixed;
}



a {
    color: var(--dark-lila);
}

header.subpage {
    padding: 4rem 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 11px 35px 13px 35px;
    font-size: clamp(1rem, 3vw, 1.2rem);
    background: linear-gradient(180deg, #bab9ff 0%, #948BD8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(148, 139, 216, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;  
    border: 0px;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 15px rgba(148, 139, 216, 0.35);
}

.icon-phone {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    background-color: currentColor; 
    -webkit-mask-image: url('../icons/icn-phone.svg');
    mask-image: url('../icons/icn-phone.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-send {
    width: 1.25rem;
    height: 1.25em;
    margin-left: 6px;
    flex-shrink: 0;
    background-color: currentColor; 
    -webkit-mask-image: url('../icons/icn-send.svg');
    mask-image: url('../icons/icn-send.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.icon-ask {
    width: 1.25rem;
    height: 1.25em;
    margin-left: 9px;
    flex-shrink: 0;
    background-color: currentColor; 
    -webkit-mask-image: url('../icons/icn-bubble.svg');
    mask-image: url('../icons/icn-bubble.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.container {
    width: min(100% - 20%, 1200px);
    margin-inline: auto;
} 

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-container {
    width: 100%;
    padding-block: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    background-image: url('../images/img_hero_wood.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-container a,
.subpage a {
    font-family: 'Archivo';
    font-weight: 700;
    letter-spacing: .433px;
    color: white;
    text-decoration: none;
}

.grid {
    display: grid;
    grid-column-gap: 1rem;
    grid-row-gap: 1.6rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3rem;

}

.card {
    overflow: hidden;
    background-color: #E9E8F7;
    background-image: linear-gradient(135deg, #ffffff 0%, #E9E8F7 45%, #c8c2ed 100%);
    background-attachment: fixed;
    border-radius: 10px;
}

.card img {
    width: 100%;
    aspect-ratio: 16 /9;
    object-fit: cover;
    object-position: center;
}

.card h4 {
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.card p {
    padding: clamp(1.5rem, 5vw, 3rem);
    padding-top: 0;
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

form {
    margin-top: 2rem;
    display: grid;
    grid-column-gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

label {
    font-size: 1rem;
    margin-bottom: .3rem;
    font-weight: 500;
}

input,
textarea {
    font-size: 1rem;
    font-family: 'Archivo';
    padding: .85rem;
    border: 0px;
    border-radius: 8px;
}

textarea {
    min-height: 15rem;
    border-radius: 10px;
}

button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: end;
    font-weight: 700;
    margin-top: 2rem;
    width: 15rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.beschreibung {
    margin-top: 2rem;
    grid-column: 1 / -1;
}

footer {
    border-top: 1px solid var(--dark-lila);
    padding-block: clamp(1.5rem, 5vw, 3rem);
    line-height: 1.65;
} 

footer a {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;     
    width: fit-content;
}

footer a:hover {
    color: #948BD8;
    transition: all 0.2s ease-in-out;
}


footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 2px;
    left: 0;
    background-color: var(--dark-lila);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

footer nav {
    all: unset;
}

footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    row-gap: 2rem;
} 

footer .logo {
    width: 150px;
}

.legal {
    display: grid;
    row-gap: 2rem;
    column-gap: 3rem;
    grid-auto-flow: column;
}

.copyright {
    text-align: center;
    color: var(--lila);
    font-weight: 700;
}

@media (min-width: 1325px) {
    form {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 987px) {
    form {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 868px) {
    form,
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .split {
        grid-template-columns: repeat(1, 1fr);
        gap: .6rem;
    }
}

@media (min-width: 635px) and (max-width: 880px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .card {
        display: flex;
        flex-direction: row;
    }

    .card img {
        width: 50%;
    }
}

@media (max-width: 715px) {
    form,
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    h2::after {
        width: 80px;
        height: 4.5px;
    }
}

@media (max-width: 432px) {

    .logo {
        margin-bottom: 1.9rem;
    }

    footer .logo {
        margin-bottom: .5rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    nav {
        align-items: center;
        flex-direction: column;
    }

    .hero-container h1 {
        text-align: center;
    }

    #ask,
    button[type="submit"] {
        width: 100%;
    }


    .legal {
        grid-auto-flow: row;
    }

    h5::after {
        margin-inline: auto;
    }

    footer .container {
        justify-content: center;
        text-align: center;
    }

    footer a {
        margin-inline: auto;
    }
}