/*
 ------------------------------------------------
 VARIABLES
 ------------------------------------------------
 */
:root {
    --color-background: white;
    --color-text: #3d3d3d;
    --color-text-inverse: #ededed;
    --color-primary: #993233;
    --color-secondary: #aea99b;
    --color-third: #86827a;

    --margin: 16px;
    --margin-lg: 3rem;
    --padding: 8px;
    --padding-sm: 4px;
    --border-width: 1px;
    --border-radius: 20px;

    --max-page-width: 1000px;
}

/*
 ------------------------------------------------
 FONTS
 ------------------------------------------------
 */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

/*
 ------------------------------------------------
 GENERAL
 ------------------------------------------------
 */
* {
    box-sizing: border-box;
}

body {
    color: var(--color-text);
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

::selection {
    background: var(--color-primary);
    color: var(--color-background);
}

.page-wrapper {
    max-width: var(--max-page-width);
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    padding-left: var(--padding);
    padding-right: var(--padding);
}

a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

main a::before {
    content: '\f0c1';
    font-family: 'Font Awesome 7 Free';
    padding-right: var(--padding-sm);
}

main a[target="_blank"]::before {
    content: '\f08e';
}

main a[href^="mailto:"]::before {
    content: '\f0e0';
}

main a[href^="tel:"]::before {
    content: '\f095';
}


a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

h1 {
    font-weight: 300;
    margin-top: .5em;
    margin-bottom: .5em;
}

h2 {
    font-weight: 300;
    font-size: 1.7em;
    margin-top: .5em;
    margin-bottom: .5em;
}

h3 {
    font-weight: 300;
    font-size: 1.5em;
}

h4 {
    font-weight: 300;
    font-size: 1.4em;
}

h5 {
    font-weight: 300;
}

h6 {
    font-weight: 300;
    font-size: 1.1em;
    margin: 0;
}

h2 + h5 {
    margin-top: -.5em;
}

@media (min-width: 750px) {
    h1 {
        margin-top: .5em;
        margin-bottom: .5em;
    }

    h2 {
        margin-top: .5em;
        margin-bottom: .5em;
    }
}

@media (min-width: 1000px) {
    .page-wrapper {
        padding: 0;
    }

    /* SEITENBEGRENZUNG */
    body {
        max-width: 1000px;
        box-shadow: var(--color-secondary) 0 10px 25px 0px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}


/*
 ------------------------------------------------
 HEADER
 ------------------------------------------------
 */
header {
    width: 100%;
    border-bottom: solid 8px var(--color-secondary);

    /* FIXES MENÜ */
    position: fixed;
    top: 0;
    background: var(--color-background);
    max-width: 1000px;
    z-index: 100;
}

header .page-wrapper {

}

header #branding {
    display: block;
    line-height: 55px;
    position: relative;
}

header #branding .icon-wrapper {
    width: 55px;
    height: 55px;
    display: inline-block;
}

header #branding img {
    width: inherit;
    vertical-align: middle;
    display: inline-block;
}

header #branding-text {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 32px;
    color: var(--color-primary);
    font-weight: 400;
}

header span.large-screen {
    display: none;
}

header #branding-text .name {
    text-transform: uppercase;
}

header span.small-screen {
    font-size: small;
    color: var(--color-third);
    display: block;
    line-height: 1em;
    padding-bottom: .5em;
}


@media (min-width: 750px) {
    header {
        border-bottom: none;
    }

    header #branding .icon-wrapper {
        width: 120px;
        height: 100px;
        padding: 10px 0;
        transition: .3s;
    }

    header #branding-text {
        font-size: 1.5em;
        font-weight: 400;
        padding-bottom: var(--padding);
        transition: .3s;
    }

    header span.large-screen {
        display: block;
        color: var(--color-third);
        font-size: .6em;
        font-weight: 300;
        line-height: 1em;
    }

    header span.large-screen:not(:first-child) {
        padding-bottom: var(--padding);
    }

    header span.small-screen {
        display: none;
    }

    header #focus-of-activity {
        right: 0;
        bottom: 0;
        position: absolute;
        font-size: .9em;
        line-height: 1.6em;
        padding-right: var(--padding);
    }

    /* FIXES MENÜ */
    header.min #branding .icon-wrapper {
        width: 55px;
        height: 55px;
        padding: 0;
        transition: .3s;
    }

    header.min #branding-text {
        font-size: 1em;
        padding-bottom: 0;
        transition: .3s;
    }

    header.min span.large-screen {
        display: none;
    }

    header.min #menu .menu-wrapper > ul {
        position: absolute;
        right: 0;
        bottom: 0;
        transition: .3s;
    }

    header.min #menu li > a {
        font-size: .8rem;
        transition: .3s;
    }
}

@media (min-width: 850px) {
    header.min #menu li > a {
        font-size: 1rem;
        transition: .3s;
    }
}

@media (min-width: 1000px) {
    header #focus-of-activity {
        padding-right: 0;
    }

    header #branding .icon-wrapper {
        width: 180px;
        height: 140px;
        margin-right: 10px;
    }
}


/*
 ------------------------------------------------
 MENU
 ------------------------------------------------
 */
#menu .toggler {
    position: absolute;
    top: 0;
    right: 0;
    height: 60px;
    width: 60px;
    padding: var(--padding);
    -webkit-tap-highlight-color: transparent;
}

#menu .toggler-text {
    position: absolute;
    bottom: var(--padding);
    width: calc(100% - 2 * var(--padding));
    text-align: center;
    font-size: small;
    color: var(--color-third);
    transition: all 0.25s;
}

#menu .toggler-icon {
    display: block;
    position: absolute;
    width: 44px;
    height: 44px;
}

#menu .toggler-icon .top,
#menu .toggler-icon .bottom {
    content: '';
    display: block;
    position: absolute;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--color-secondary);
    transform: rotate(0);
    transition: all 0.25s;
}

#menu .toggler:hover .top,
#menu .toggler:hover .bottom {
    background: var(--color-primary);
}

#menu .toggler:hover .toggler-text {
    color: var(--color-primary);
}

#menu .toggler-icon .top {
    top: 12px;
    transform: translateY(-3px);
}

#menu .toggler-icon .bottom {
    top: 12px;
    transform: translateY(3px);
}

#menu.visible .toggler-icon .top {
    transform:
            rotate(45deg)
            translateY(0px);
}

#menu.visible .toggler-icon .bottom {
    transform:
            rotate(135deg)
            translateY(0px);
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 40px 50px;
    width: 100vw;
    background: var(--color-secondary);
}

#menu ul a {
    display: block;
    color: var(--color-text-inverse);
    font-size: 1.3rem;
    padding: var(--padding) 0;
}

#menu .menu-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: .5s ease-in-out;
}

#menu.visible .menu-wrapper {
    max-height: 1200px;
    transition: .5s ease-in-out;
}

#menu li > button {
    background: none;
    border: none;
    color: var(--color-text-inverse);
    font-size: 1.3em;
    padding: var(--padding) 0;
    cursor: pointer;
    margin-left: -30px;
    transition: .3s ease-in-out;
}

#menu li > a {
    display: inline-block;
    font-weight: normal;
}

#menu li.active > a {
    color: var(--color-primary);
}

#menu li > a:hover {
    color: var(--color-primary);
}

#menu .submenu {
    padding: 0 40px;
    max-height: 0;
    overflow: hidden;
    transition: .3s ease-in-out;
}

#menu .submenu.visible {
    max-height: 800px;
    transition: .3s ease-in-out;
}

#menu li > button.active {
    transform: rotate(90deg);
    transition: .3s ease-in-out;
}

#menu .submenu a {
    font-size: 1em;
}

/*
Menu for large screens
 */
@media (min-width: 750px) {
    #menu .toggler {
        display: none;
    }

    #menu .menu-wrapper {
        max-height: none;
        max-width: var(--max-page-width);
        margin-left: auto;
        margin-right: auto;
        text-align: right;
        overflow: visible;
        border-top: solid 8px var(--color-secondary);
    }

    #menu ul {
        background: transparent;
        padding: 0;
        width: auto;
    }

    #menu li {
        display: inline-block;
        position: relative;
        padding: var(--padding) 7px;
    }

    #menu li > button {
        display: none;
    }

    #menu li > a {
        color: var(--color-third);
        font-size: 1em;
    }

    #menu .submenu {
        position: absolute;
        background: var(--color-secondary);
        margin-top: var(--padding);
        margin-left: -40px;
        box-shadow: var(--color-text) 0 10px 25px 0px;
        z-index: 4;
    }

    #menu .submenu.visible {
        max-height: 1000px;
    }

    #menu .submenu li {
        display: block;
        text-align: left;
    }

    #menu .submenu a {
        color: var(--color-text-inverse);
    }

    #menu li:last-child .submenu {
        right: 0;
    }
}

@media (min-width: 1000px) {
    #menu li:last-child {
        padding-right: 0;
    }

    #menu li > a {
        font-size: 1.3em;
    }

    /* SEITENBEGRENZUNG */
    #menu li:last-child {
        padding-right: 2rem;
    }
}




/*
 ------------------------------------------------
 FOOTER
 ------------------------------------------------
 */

footer {
    background: var(--color-secondary);
    color: var(--color-background);
    margin-top: var(--margin);
}

footer a {
    color: var(--color-background);
}

footer a:hover {
    color: var(--color-primary);
}

footer .page-wrapper > div {
    border-bottom: solid 1px var(--color-background);
    padding: calc(var(--padding) * 4) 0;
    text-align: center;
}

footer .page-wrapper > div:last-child {
    border-bottom: none;
}

footer p,
footer table {
    margin: .5em;
}

footer table {
    margin-left: auto;
    margin-right: auto;
}

footer table td {
    padding-left: var(--padding);
    padding-right: var(--padding);
}

footer #copyright {
    margin-top: var(--margin);
}

@media (min-width: 750px) {
    footer .page-wrapper > div {
        width: calc(33.3% - 5px);
        display: inline-block;
        vertical-align: top;
        border-bottom: none;
    }

    footer .page-wrapper > div:last-child {
        width: 100%;
        border-top: solid 1px var(--color-background);
    }
}

/*
 ------------------------------------------------
 MAIN
 ------------------------------------------------
 */

/* FIXES MENÜ */
main {
    padding-top: 65px;
}

@media (min-width: 750px) {
    main {
        padding-top: 150px;
    }
}

@media (min-width: 1000px) {
    main {
        padding-top: 210px;
    }
}

#landingpage main h1 {
    margin-top: 2em;
    margin-bottom: 2em;
    font-weight: 200;
}

#landingpage main p {
    font-weight: 300;
}

main .cover {
    overflow-x: hidden;

    /* SEITENBEGRENZUNG */
    padding: 0;

    /* FIXES MENÜ */
    margin-top: 1em;
}

.cover-content {
    width: calc(100% + 1px);
}

#cover img {
    width: 33.33%;
    display: inline-block;
    float: left;
}

.right {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.quote {
    font-size: 1.3em;
    color: var(--color-primary);
    margin: 2em 0;
}

.quote i {
    font-size: 1.5em;
}

.call {
    text-align: center;
    color: var(--color-primary);
    /*font-weight: bold;*/
    padding: var(--padding);
}

.call span {
    display: block;
}

@media (min-width: 750px) {
    .call span {
        display: inline;
    }

    .call span:nth-child(2) {
        margin-left: 1em;
    }
}

section.separate {
    border-bottom: solid 1px var(--color-secondary);
    margin-top: -2em;
    padding-top: 3.5em;
    padding-bottom: 2em;
}

@media (min-width: 750px) {
    section.separate {
        margin-top: -1em;
        padding-top: 4em;
        padding-bottom: 4em;
    }
}

h1 + section.separate {
    margin-top: -4em;
    padding-top: 4em;
}

section.separate:last-child {
    border-bottom: none;
}

@media (min-width: 750px) {
    .right {
        float: right;
        margin-left: 1em;
        margin-bottom: 1em;
    }
}

.small {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

@media (min-width: 750px) {
    .small {
        width: 350px;
    }
}

.smaller {
    height: 300px;
}

.image-text-wrapper {
    min-height: 300px;
}


#haftungshinweis {
    font-weight: bold;
}

#ersttermin h2::after {
    content: '\f05a';
    font-family: "Font Awesome 7 Free";
    margin-left: var(--padding);
}

#behandlungszeit,
#telefonische-sprechzeit {
    border: solid 1px var(--color-secondary);
    height: 150px;
    position: relative;
    margin-bottom: 1em;
}

#behandlungszeit div,
#telefonische-sprechzeit div {
    display: inline-block;
}

#behandlungszeit h4,
#telefonische-sprechzeit h4 {
    font-size: 1.2em;
    margin: var(--padding) var(--padding) 0 var(--padding);
}

#behandlungszeit table,
#telefonische-sprechzeit table {
    margin: 0 var(--padding) var(--padding) var(--padding);
}

#behandlungszeit td:first-child,
#telefonische-sprechzeit td:first-child {
    font-weight: 600;
}

#telefonische-sprechzeit span {
    display: block;
    text-align: center;
    padding: var(--padding);
}

#behandlungszeit img,
#telefonische-sprechzeit img {
    display: inline-block;
    height: 100%;
    width: 100px;
    object-fit: cover;
    position: absolute;
    right: 0;
}


@media (min-width: 750px) {
    #behandlungszeit,
    #telefonische-sprechzeit {
        display: inline-block;
        width: calc(50% - 10px);
        vertical-align: top;
    }

    #behandlungszeit td:first-child,
    #telefonische-sprechzeit td:first-child {
        padding-right: 1em;
    }

}

@media (min-width: 1000px) {
    #behandlungszeit,
    #telefonische-sprechzeit {
        height: 250px;
    }

    #behandlungszeit img,
    #telefonische-sprechzeit img {
        width: 150px;
    }

    #behandlungszeit h4,
    #telefonische-sprechzeit h4 {
        font-size: 1.4em;
        margin: 1.5em var(--padding) 1em var(--padding);
    }

}

/* Contact form */
#kontakt form table,
#kontakt form table tbody,
#kontakt form table tr,
#kontakt form table td {
    display: block;
}

#kontakt form input,
#kontakt form select,
#kontakt form textarea {
    width: 100%;
    border: solid 1px var(--color-secondary);
    font-size: 1em;
}

#kontakt form [type=submit],
#kontakt form [type=reset] {
    background: var(--color-secondary);
    color: var(--color-background);
}

#kontakt form [type=submit]:hover,
#kontakt form [type=reset]:hover {
    background: var(--color-background);
    color: var(--color-third);
    cursor: pointer;
}


#mail-success {
    display: none;
}

#mail-success:target {
    display: block;
    padding: var(--padding);
    border: solid 1px var(--color-secondary);
}

#mail-success i {
    color: var(--color-third);
    font-size: 2em;
    margin-right: .5em;
}

.small {
    font-size: .8em;
}

/* Location */
#standort #map {
    width: 100%;
    height: 300px;
    background: url('../images/karte.jpg') center center;
    background-size: cover;
    position: relative;
}

@media (min-width: 750px) {
    #standort #map {
        height: 450px;
    }
}

#standort #map div {
    background: rgba(100, 100, 100, 0.8);
    padding: 3em;
    color: var(--color-background);
    text-align: center;
    font-size: small;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

#standort #map a {
    padding: 1em;
    background: var(--color-secondary);
    color: var(--color-background);
    border: none;
    cursor: pointer;
}

#anfahrt td {
    vertical-align: top;
}

#anfahrt td:first-child {
    font-weight: 600;
    padding-right: .5em;
    text-align: right;
}

/* Gallery TODO rework */
.gallery {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.preview {
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.5;
    z-index: 0; /* Do not overlap header */
}

.previewImage {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: 1.5s
}

.previewImage .mainImage,
.previewImage .background {
    width: 100%;
    height: 100%;
    position: absolute;
}

.previewImage .mainImage {
    z-index: 2;
    object-fit: contain;
}

.previewImage .background {
    z-index: 1;
    filter: blur(30px);
    transform: scale(1.1);
}

.previewImage:first-child {
    position: static !important;
    opacity: 1;
}

.ppbutton {
    width: 10vw;
    height: 10vw;
    background: none;
    border: none;
    color: var(--color-background);
    position: absolute;
    left: 50%;
    margin-left: -5vw;
    bottom: 5%;
    opacity: 0.6;
    transition: 0.3s;
    z-index: 3;
    cursor: pointer;
}

.ppbutton i {
    font-size: 5vw;
    text-shadow: var(--color-text) 1px 1px 10px;
    transition: .3s;
}

@media (min-width: 750px) {
    .ppbutton {
        width: 5vw;
        height: 5vw;
        margin-left: -2.5vw;
    }

    .ppbutton i {
        font-size: 3vw;
    }
}

.ppbutton:hover i {
    text-shadow: var(--color-text) 10px 10px 10px;
    transition: .3s;
}

.ppbutton:hover {
    opacity: 1 !important;
    transition: 0.2s;
}

.thumbnails {
    width: 100%;
    overflow: hidden;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
}

.thumbnails img {
    width: calc(24%);
    opacity: 0.8;
    border: solid 1px var(--color-secondary);
    box-sizing: border-box;
    transition: 0.3s;
    aspect-ratio: 1.5;
    object-fit: contain;
    background: var(--color-secondary);
    flex-grow: 1;
}

.thumbnails img:hover {
    border: solid 1px #aea99b;
    opacity: 1;
    transition: 0.2s;
    cursor: pointer;
}






