@import url('https://fonts.googleapis.com/css2?family=Hubballi&family=Rubik:ital,wght@0,300..900;1,300..900&family=Varela+Round&display=swap');

/* define css variables */
:root {
    --background-accent-color: #F6E9DD;
    --background-color: #E7E2DD;
    --primary-color: #aabea9;
    --secondary-color: #124142;
    --tertiary-color: #b29e99;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 24px 24px;
    height: auto;
    min-height: 100vh;
    width: 100dvw;
    color: var(--secondary-color);
    font-family: "Hubballi", "Verdana", "sans-serif";
    font-size: 1.7rem;
    font-weight: 300;
    background-color: var(--background-accent-color);
    box-sizing: border-box;
    overflow-x: hidden;
}

.content {
    background-color: var(--background-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, p {
    margin: 4px 4px 4px 0;
}

button {
    display: block;
    margin: 12px 0;
    width: 160px;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 300;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav {
    width: 100%;
    display: flex;
    box-sizing: border-box;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    background-color: var(--background-color);
    color: var(--secondary-color);
    padding: 6px 24px;
    border-radius: 20px;
}  

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
    justify-content: flex-end;
    padding: 16px 16px;
    margin: 0;
    box-sizing: border-box;
}

nav ul li {
    display: inline;
    cursor: pointer;
    font-weight: 600;
    font-size: 2rem;
    margin-right: 16px;
    margin-left: 16px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, p {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 8px 0;
    padding: 0;
}

a:hover {
    font-weight: 900;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
}

.leistungen-list {
    margin-top: 0;
    margin-bottom: 0;
    overflow-wrap: break-word;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    font-size: 1.25rem;
    padding: 80px 20px 40px 20px;
    box-sizing: border-box;
}

section {
    box-sizing: border-box;
    width: 60%;
    margin: 0 20% 0 20%;
    padding: 60px 0;
}

.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.main {
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%221800%22%20height%3D%22647%22%20viewBox%3D%220%200%201800%20647%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cmask%20id%3D%22mask0_4_35%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%22-201%22%20y%3D%220%22%20width%3D%222202%22%20height%3D%22648%22%3E%0A%3Cpath%20d%3D%22M0%20201L60%20213.497C120%20225.995%20240%20250.989%20360%20285.456C480%20319.79%20600%20363.728%20720%20360.571C840%20357.545%20960%20307.556%201080%20263.881C1200%20220.338%201320%20182.978%201440%20214.55C1560%20246.122%201680%20346.627%201740%20396.748L1800%20447%22%20stroke%3D%22%23AABEA9%22%20stroke-width%3D%22400%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask0_4_35)%22%3E%0A%3Crect%20y%3D%22-437%22%20width%3D%221800%22%20height%3D%221522%22%20fill%3D%22%23AABEA9%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 31%;
    width: 100%
}

.main-text {
    order: 1
}

.main-image {
    order: 2
}

.personalimage {
    height: 300px;
    width: auto;
    aspect-ratio: 1;
}

.bold {
    font-weight: 800;
}

.svg-logo {
    height: 120px;
    width: auto;
}

.bg {
    
    position: relative;
    width: 100vw;
    height: 1000px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: left;
    width: 100%;
    gap: 12px;
}

.map {
    aspect-ratio: 3/2;
}

.contact-card {
    display: flex;
    width: 320px;
    padding: 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
    width: 100%;
    box-sizing: border-box;

}

.contact-form form {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: left;
    gap: 12px;
}

.contact-form form input, .contact-form form textarea {
    font-size: 1rem;
    padding: 12px;
    /* background-color: var(--background-accent-color); */
    background-color: var(--primary-color);
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desktop-only {
    display: inline;
}

.mobile-only {
    display: none;
}

#leistungen {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#kontakt {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#start {
    margin-top: 24px;
    display: grid;
    height: auto;
    grid-template-columns: 60% 40%;
}

@media (max-width: 2048px) {
    section {
        width: 70%;
        margin: 0 15% 0 15%;
    }
}

/* mobile styles */

@media (max-width: 1024px) {
    body {
        padding: 8px;
    }

    section {
        width: 90%;
        margin: 0 5% 0 5%;
        padding: 20px 0;
    }

    nav {
        justify-content: center;
    }

    .main {
        width: 100%;
        margin: 0;
        background-image: none;
    }

    .main-text {
        order: 2
    }

    .main-image {
        order: 1;
        margin-bottom: 24px;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .svg-logo {
        margin-top: 12px;
        height: 80px;
        width: auto;
    }

    #start {
        margin-top: 8px;
        display: grid;
        height: auto;
        grid-template-columns: 100%;
        grid-template-rows: auto auto;
    }

    .personalimage {
        margin-top: 24px;
    }

    .contact-card {
        width: 100%;
    }
}

/* phone styles */
@media (max-width: 480px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline;
    }

    .leistungen-list {
        overflow-wrap: break-word;
    }
}