:root {
    --standard-font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    --light-green: #8fa246;
    --dark-green: #6f8037;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fafacd;
    width: 100dvw;
    margin: auto;
    margin-top: 0;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, .1);
    max-width: 1240px;
}

/*Header*/
header {
    background-color: white;
    align-items: center;
}

header .text-container {
    width: calc(98% - 30px);
    display: flex;
    justify-content: space-between;
    padding: 5px 15px 5px 15px;
    align-items: center;
    margin: auto;
}

header .text-container a {
    text-decoration: none;
    font-family: var(--standard-font);
}

header .text-container a h1 {
    color: var(--light-green);
    font-family: var(--standard-font);
    font-size: 20px;
    font-weight: 400;
}

header .text-container ul {
    display: flex;
    list-style: none;
    gap: 30px;
    font-size: 14px;
    color: black;
}


header .text-container ul span#arrow {
    margin-left: 10px;
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-50%);
}

@media (min-width: 1100px) {



    header .text-container ul li#therapie {
        anchor-name: --therapie;
    }

    header .text-container ul li#kostenuebernahme {
        opacity: 0;
        position: absolute;
        position-anchor: --therapie;
        top: calc(anchor(bottom) + 15px);
        left: calc(anchor(left) - 10px);
        background-color: white;
        padding: 15px 45px 15px 10px;
        transition: all 0.8s;
        transform: translateY(10px);
    }

    header .text-container ul li#kostenuebernahme::before {
        content: "";
        position: absolute;
        height: 20px;
        top: -20px;
        left: 0;
        right: 0;
    }

    header .text-container ul li#therapie:hover~li#kostenuebernahme,
    header .text-container ul li#kostenuebernahme:hover {
        opacity: 1;
        transform: translate(0);
    }
}


header .text-container ul li a {
    color: black;
    transition: all 0.4s;
}

ul li a.active:not(ul:has(a:hover) a) {
    color: var(--light-green);
}


header .text-container ul li a:hover {
    color: var(--light-green);
}


/* Sandwich-Menü */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: currentColor;
    border-radius: 5px;
    transition: 0.3s;
}

/* Animation zum X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 1100px) {

    header .text-container {
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    header .text-container ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 25px 0;
        margin: 0;
        background: white;
        z-index: 1000;
    }

    header .text-container ul.active {
        display: flex;
    }

    header .text-container ul li#kostenuebernahme {
        font-size: 0.8rem;
        margin-top: -15px;
        margin-left: 30px;
        display: none;
    }
}

header #weg-gif {
    width: 100%;
    height: clamp(60px, 7dvw, 110px);
    background-image: url(media/weg.gif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    border-radius: 6px;
    margin: auto;
    width: 98%;
}

/*Header ende*/


/*Main*/
main {
    display: flex;
    flex-direction: column;
    background-color: white;
    align-items: center;
    font-family: var(--standard-font);
    padding: 15px;
    text-align: left;
}

#index {
    padding: 100px 15px;
}

strong#name {
    width: 33%;
    font-size: 14pt;
    position: absolute;
    position-anchor: --portrait;
    bottom: calc(anchor(top) + 10px);
    left: anchor(left);
}

section {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: start;
    margin: auto;
}

section#therapie,
section#kosten,
section#impressum {
    flex-direction: column;
}

section a {
    text-decoration: none;
    color: var(--light-green);
    transition: all 0.2s;
}

section a:hover {
    color: var(--dark-green);
}

section#person div p {
    margin-top: 0;
}

section img#portrait {
    width: 150px;
    anchor-name: --portrait;
}

section#intro img#knabenkraut {
    width: 95px;
}

.zitat {
    font-size: 24px;
    text-align: center;
}

@media (max-width: 760px) {
    section {
        flex-direction: column;
    }

    section img {
        margin: auto;
    }
}

/*Main ende*/

/*Footer*/
footer {
    background-color: var(--light-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 15px;
    color: white;
    font-size: 14px;
    font-family: var(--standard-font);
}

footer p {
    max-width: 50vw;
}

footer a {
    text-decoration: none;
    color: white;
}


/*SSec*/

#telefon::after {
    content: "0699 - 10937388";
    cursor: text;
}

#email::after {
    content: "webmaster@awecker.at";
    cursor: text;
}