html {
    scroll-behavior: smooth;
}

body {
    font-family: 'public_sans_regular', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    padding: 0;
    margin: 0;
    background-color: #f6f2e2;
}

@font-face {
  font-family: 'public_sans_regular';
    src: url('fonts/PublicSans-Regular.woff') format('woff'),
    url('fonts/PublicSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: 'public_sans_medium';
    src: url('fonts/PublicSans-Medium.woff') format('woff'),
    url('fonts/PublicSans-Medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: 'public_sans_bold';
    src: url('fonts/PublicSans-Bold.woff') format('woff'),
    url('fonts/PublicSans-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: 'public_sans_black';
    src: url('fonts/PublicSans-Black.woff') format('woff'),
    url('fonts/PublicSans-Black.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Utils */

main ul {
    margin: 0 15px;
    padding: 0;
} 

main li {
    margin: 0 0 5px 0;
}

.image-backgound {
    background-size: cover;
    position: relative;
}

/**/

header {
    position: relative;
    display: flex;
    right: 0;
    top: 0;
    width: 100%;
    background-color: transparent;
    transition: background-color .3s ease;
}

header, footer {
    position: fixed;
    z-index: 10;
}

.go-down header,
.go-up header {
    background-color: #f6f2e2;
}

.logo {
    color: #fff;
}

.logo.wrapper a {
    display: flex;
    position: absolute;
    left: 60px;
    top: 100px;
    transition: all .3s ease;
    color: #fff;
    z-index: 10;
    text-decoration: none;
}

.go-down .logo.wrapper a,
.go-up .logo.wrapper a {
    left: 60px;
    top: 15px;
}

.logo.wrapper svg {
    width: 112px;
    height: 112px;
    margin-right: 20px;
    fill: #fff;
}

.go-down .logo.wrapper svg,
.go-up .logo.wrapper svg     {
    width: 66px;
    height: 66px;
    fill: #000;
}

.logo.wrapper img.maria {
    width: 270px;
    margin-top: 20px;
}

.logo.wrapper .logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    
}

.go-down .logo.wrapper .logo-text,
.go-up .logo.wrapper .logo-text {
    padding-top: 0;
    color: #000
}

.logo.wrapper span {
    display: block;
    width: 100%;
}

.logo.wrapper span:first-child {
    font-size: 42px;
}

.logo.wrapper span:last-child {
    font-size: 26px;
}

.go-down .logo.wrapper span:first-child,
.go-up .logo.wrapper span:first-child {
    font-size: 30px;
}

.go-down .logo.wrapper span:last-child,
.go-up .logo.wrapper span:last-child {
    font-size: 18px;
}

nav {
    width: 100%;
    text-align: right;
}

nav ul {
    padding: 20px 60px;
    list-style: none;
    display: flex;
    justify-content: right;
}

nav ul li {
    margin-left: 20px;
    display: flex;
    font-size: 18px;
}
 
nav ul li a {
    color: black;
    text-decoration: none;
}

nav ul li a:hover {
    color: black;
    text-decoration: underline;
}

.burger {
    display: none;
}

main {
    width: 100%;
}

.small {
    font-size: 14px;
}

.section-wrapper:first-child {
    height: 100vh;
}

.section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    width: 100%;
}

/* Anchornavi */ 

.anchor-navi {
    position: fixed;
    z-index: 10;
    left: 20px;
    bottom: 20px;
    font-size: 16px;
}

.anchor-navi ul {
    list-style: none;
}

.anchor-navi li a {
    background-color: #f6f2e2;
    padding: 10px;
    text-decoration: none;
    color: #000; 
    display: block;
}

.anchor-navi li a.active {
    background-color: #77a58d;
}

.left::after {
    content: '';
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .3;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.right {
    padding: 10%;
    display: flex;
    align-items: center;
}

.right h1.fontcustom {
    width: 100%;
}

.right h1 {
    font-family: 'public_sans_bold', sans-serif;
    width: 100%;
}

.right p {
    width: 100%;
}

.right a {
    color: #000;
}

footer {
    width: 50%;
    background-color: #77a58d;
    color: #fff;
    bottom: 0;
    right: 0;
    font-size: 18px;
} 

footer .wrapper {
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: end;
}

footer p {
    padding: 0;
    margin: 0;
}

footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

footer li {
    margin-right: 10px;
    border-right: 1px solid #fff;
    padding-right: 5px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    background-image: url(images/Kontakt.jpg);
    background-size: cover;
}

.flexnone {
    display: block;
    padding-top: 0;
    padding-bottom: 0;
}

.flexrow{
    display: flex;
    align-items: center;
    height: 100vh;
    width: 100%;
}

/*-- sections --*/

/* Intro */

#intro .left {
    background-image: url(images/HP_Praxis_Maria_Start.jpg);
    background-position: right center;
}

#kontakt .left .sticky {
    background-image: url(images/HP_Praxis_Maria_Portrait_Start.jpg);
    background-position: right center;
    background-size: cover;
}

/* Kontakt */

#kontakt .right {
    padding-bottom: 100px;  
}

/* Leistung */

#leistung .left {
    background-image: url(images/HP_Praxis_Leistung_Start.jpg);
}

#personen .left .sticky {
    background-image: url(images/HP_Praxis_Leistung_Rogers_1.jpg);
    background-position: center;
}

#kunsttherapie .left .sticky {
    background-image: url(images/HP_Praxis_Leistung_Kunst.jpg);
    background-position: center;
}

#tbt .left .sticky {
    background-image: url(images/HP_Praxis_Leistung_TBT.jpg);
    background-position: center;
}

#eft .left .sticky {
    background-image: url(images/HP_Praxis_Leistung_EFT.jpg);
    background-position: center;
}

#about .left .sticky {
    background-image: url(images/HP_Praxis_About.jpg);
    background-position: center;
}

#kontakt .left .sticky {
    background-image: url(images/HP_Praxis_Kontakt.jpg);
    background-position: center;
}

#impressum .left .sticky {
    background-image: url(images/HP_Praxis_Kontakt.jpg);
    background-position: center;
}

/**/

/*-- Responsive --*/

@media screen and (max-width: 768px) {
    header {
        background-color: #f6f2e2;
        height: 110px;
    }
    main {
        display: block;
        margin-top: 110px;
    }
    .section-wrapper,
    .section-wrapper:first-child {
        display: block;
        height: 100%;
    }

    .sticky {
        position: relative;
        height: 300px;
    }

    .flexrow {
        display: block;
        height: auto;
    }

    .left {
        padding-top: 0;
        height: 100%;
    }
    .text-header {
        padding: 20px;
    }
    .left::after {
        height: 100%;
        width: 100%;
    }
    .right {
        padding: 20px 0 80px 0;
    }
    .right img {
        display: block;
        visibility: visible;
        width: 80%;
        padding-bottom: 100px;
    }
    .logo.wrapper, 
    .right,
    .left,
    footer {
        width: 100%;
        height: 100%;
        display: block;
    }

    nav {
        position: absolute;
        top: 100px;
        left: 0;
        z-index: 10;
        background-color: #f6f2e2;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.7s ease;
    } 

    nav.is-open {
        max-height: 1000px;
    } 

    nav ul {
        display: block;
        padding: 20px 30px;
    }

    nav ul li {
        padding: 0 0 20px;
        margin: 0;
    }

    .logo {
        color: #000;
    }

    .logo.wrapper a {
        display: flex;
        position: absolute;
        left: 0;
        top: 0;   
        margin-left: 20px;
        margin-top: 20px;
        color: #000;
    }

    .logo.wrapper a svg {
        width: 66px;
        height: 66px;
        fill: #000;
    }

    .go-down .logo.wrapper a, 
    .go-up .logo.wrapper a {
        left: 0;
        top: 0;
    }

    .go-down .logo.wrapper .logo-text, 
    .go-up .logo.wrapper .logo-text {
        padding-top: 10px;
        color: #000;
    }

    .logo.wrapper a span:first-child,
    .go-down .logo.wrapper a span:first-child, 
    .go-up .logo.wrapper a span:first-child {
        font-size: 24px;
    }

    .logo.wrapper span:last-child,
    .go-down .logo.wrapper span:last-child, 
    .go-up .logo.wrapper span:last-child {
        font-size: 16px;
    }

    .burger {
        display: flex;
        position: absolute;
        flex-direction: column;
        justify-content: space-around;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
        border: none;
        z-index: 100;
        cursor: pointer;
        padding: 0;
    }

    .burger-line {
        width: 100%;
        height: 3px;
        background: #000; /* Farbe der Balken */
        border-radius: 3px;
        transition: all 0.3s ease;
        position: relative;
        transform-origin: center;
    }

    /* Animation zum X */
    .menu-open .burger .burger-line:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-open .burger .burger-line:nth-child(2) {
        opacity: 0;
    }

    .menu-open .burger .burger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    footer {
        position: relative;
    }

    footer .wrapper {
        display: block;
        padding: 20px;
    }

    footer ul {
        padding-bottom: 20px;
    }

    footer li:last-child {
        border: none;
    } 
}