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

:root {
    --color-black-text: #000;
    --color-white-text: #fff;
    --color-white-bg: #fff;

    --color-body-bg: #faf9fb;
    --color-footer-bg: #f3eff7;

    --color-purple-text: #5a3787;
    --color-purple-bg: #5a3787;
    --color-lightpurple-text: #5a378799;

    /*--color-blue-text: #306FBA;
    --color-blue-bg: #306FBA;
    --color-blue20-bg: #306FBA33;
    --color-lightblue-bg: #306FBA08;*/

    --color-blue-text: #285C9A;
    --color-blue-bg: #285C9A;
    --color-blue20-bg: #285C9A33;
    --color-lightblue-bg: #285C9A08;

    /*--color-red-text: #fc303a;
    --color-red-bg: #fc303a;
    --color-red20-bg: #fc303a33;*/

    --color-red-text: #B62058;
    --color-red-bg: #B62058;
    --color-red20-bg: #B6205833;

    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    --border-radius: 0.33em;
    --border-radius: 0;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Heebo', sans-serif;
    font-size: 1.2em;
    font-weight: var(--font-weight-light);
    color: var(--color-black-text);
    background-color: var(--color-body-bg);
}

body:has(nav.opened) {
    overflow: hidden;
}

:is(h1, h2, h3, h4, h5, h6) {
    /*display: inline-block;*/
    margin: 0.75em 0 0.25em;
    padding: 0;
    line-height: 1.33;
}

h1 {
    font-size: 2em;
    font-weight: var(--font-weight-semibold);
    background: linear-gradient(-90deg, #285C9A 0%, #5a3787 50%, #B62058 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5em;
    font-weight: var(--font-weight-regular);
}

h3 {
    font-size: 1.5em;
    font-weight: var(--font-weight-light);
}

h4 {
    font-size: 1em;
    font-weight: var(--font-weight-medium);
}

p {
    padding: 0;
    margin: 1em 0 2em;
}

ul:not(:has(ul)),
ul:has(ul) ul {
    list-style: disc;
    padding: 0;
    margin: 0;
}

main ul:not(:has(ul)),
main ul:has(ul) ul {
    padding-left: 1em;
}

ul:not(:has(ul)) li {
    margin: 0.25em 0;
}

ul:has(ul) {
    list-style: none;
    padding: 0;
}

ul:has(ul)>li {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1em;
}

ul:has(ul)>li li {
    font-weight: var(--font-weight-light);
    margin-bottom: 0;
}

a {
    /*color: var(--color-blue-text);
    text-decoration: none;
    padding: 0;*/
    color: inherit;
}

a.internal:after {
    /*content: '→';
    padding: 0.25em;*/
}

a[target="_blank"]:after {
    /*content: '↗';
    padding: 0.25em;
    color: var(--color-red-text);*/
}

a:hover {
    /*opacity: 0.67;*/
}

strong {
    font-weight: var(--font-weight-medium);
}

th {
    font-weight: var(--font-weight-medium);
    text-align: left;
}

.frame {
    max-width: 60em;
    margin: 0 auto;
    padding: 0 1em;
}


.inner-frame-w {
    padding-left: 1em;
    padding-right: 1em;
}

@media (min-width: 56em) {
    .inner-frame-w {
        padding-left: 4em;
        padding-right: 4em;
    }
}

.inner-frame-h {
    padding-top: 2em;
    padding-bottom: 2em;
}

/* header */

body>header {
    position: sticky;
    z-index: 10;
    top: 0;
    background-color: var(--color-white-bg);

    border-bottom: 1px solid #f8f5fb;
}

/* mobile nav */

nav {}

nav>ul,
nav>ul ul nav>ul>li,
nav>ul>li li {
    margin: 0;
    padding: 0;
}

nav>ul,
nav>ul ul {
    list-style: none;
}

nav>ul>li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

nav a {
    color: inherit;
    text-decoration: none;
}

nav a.logo {
    z-index: 1;
    padding-left: 3em;
    background-image: url(./logo.svg);
    background-size: 2.5em 2.5em;
    background-repeat: no-repeat;
    background-position: left center;
}

nav a.logo>span {
    display: inline-block;
    color: var(--color-purple-text);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    padding: 0.5em 0;
    transform: scaleX(0.85);
    transform-origin: left center;
}

nav span.region {
    color: var(--color-blue-text);
}

nav button {
    z-index: 1;
    display: flex;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    outline: none;
    font-size: 1em;
    line-height: 1;
    color: var(--color-blue-text);
    cursor: pointer;
}

nav button svg {
    /* pixel-treues layout gegen unschärfe, weitere recherche notwendig */
    width: 16px;
    height: 16px;
}

/* mobile level 2 */
nav>ul>li>ul {
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    top: -100vh;
    height: 100vh;
    background: var(--color-white-bg);
    overflow-y: hidden;
    transition: top 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

nav>ul>li>ul a {
    color: var(--color-black-text);
    font-weight: var(--font-weight-medium);
}

nav>ul>li>ul ul a {
    font-weight: var(--font-weight-light);
}

nav.opened>ul>li>ul {
    top: 0;
    /* transition */
}

nav>ul>li>ul>li {
    text-align: center;
    padding: 1em 0;
}

/* desktop nav */

@media (min-width: 62em) {
    nav button {
        display: none;
    }

    nav ul>li>ul {
        display: block;
        position: static;
        top: auto;
        left: auto;
        bottom: auto;
        right: auto;
        height: auto;
        background: var(--color-white-bg);
    }

    nav>ul>li>ul a {
        font-weight: var(--font-weight-regular);
    }

    nav>ul>li>ul>li {
        text-align: left;
        padding: 0 0 0 1em;
        display: inline-block;
    }

    nav>ul>li>ul>li>ul {
        display: none;
        position: absolute;
        margin: 0 0 0 -2em;
        padding: 1.2em 0 0.8em;
        box-shadow: 0 0.5em 0.5em #0002;
    }

    nav>ul>li>ul>li:hover>ul {
        display: block;
    }

    nav>ul>li>ul>li>ul>li {
        display: block;
        margin: 0;
        padding: 0;
    }

    nav>ul>li>ul>li>ul>li>a {
        display: block;
        padding: 0.25em 2em;
    }

    nav>ul>li>ul>li>ul>li>a:hover {
        background-color: var(--color-blue20-bg);
    }
}

/* main area */

body>main {
    flex-grow: 1;
    flex-shrink: 0;
    display: flex;
}

body>main>section {
    width: 100%;
}

body>main>section.home {
    flex-grow: 1;
    display: flex;
}

/*body>main>.frame {
    padding-top: 3em;
    padding-bottom: 3em;
}*/

/* slide-show on home template */

figure.slideshow {
    flex-grow: 1;
    display: flex;
    max-height: 85vh;

    position: relative;
    margin: -1.75em -1em 0;
    /* ? */
    margin: 0;
    padding: 0;


    /*max-height: 75vh;*/
    height: 100%;
    overflow: hidden;
}

figure.slideshow figcaption {
    position: absolute;
    left: 0;
    bottom: 2em;
    display: flex;
    align-items: flex-end;
}

figure.slideshow figcaption aside {
    /*font-size: max(2vw, 1.5em);*/
    /*padding: 2rem;*/
    /*line-height: 1.33;*/
    /*font-weight: var(--font-weight-extralight);*/

    /*padding: 1em 2em 2em 1em;*/

    /*padding: 2em 2em 2em 1em;*/

    background-image: linear-gradient(45deg, #285C9Add 0%, #5a3787dd 50%, #B62058dd 100%);
}

figure.slideshow figcaption aside h2 {
    margin: 0 1rem 0 0;
    font-weight: var(--font-weight-light);
    color: white;
}

figure.slideshow figcaption aside h2 strong {
    font-weight: var(--font-weight-semibold);
}

figure.slideshow figcaption nav {
    /*position: absolute;
    left: 200px;
    bottom: 1em;*/

}

figure.slideshow figcaption nav ul {
    list-style: none;
    margin: 0 0 0 0.5em;
    padding: 0;
    display: flex;
    gap: 0.5em;
}

figure.slideshow figcaption nav li {
    display: block;
    width: 1em;
    height: 1em;
    margin: 0;
    padding: 0;
    border: 1px solid #fff;
    background-color: #0001;
    box-shadow: 0 0 .25em #0002;

}

@media (min-width: 56em) {
    figure.slideshow {
        margin: 0;
    }

    figure.slideshow figcaption aside {
        padding: 4em;
    }
}

figure.slideshow img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.5s;
}

figure.slideshow img:not(:first-child) {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

figure.slideshow img.active {
    opacity: 1;
}

/* tables (standard) */

table {
    width: 100%;
    word-break: break-word;
}

main .team-mitglied td,
main td,
main th {
    padding: 0.5em;
    border-top: 1px solid #0001;
    vertical-align: top;
}

footer table {
    border-collapse: collapse;
}

footer th,
footer td {
    padding: 0 0.25em;
}

footer tr:not(:first-child) th,
footer tr:not(:first-child):has(th) td {
    padding-top: 0.5em;
}

main .team-mitglied tr:first-child td,
main tr:first-child td,
main tr:first-child th {
    border-top-color: #0003;
}

table ul {
    margin: 0;
    padding: 0 0 0 1.5em;
}

/* tables (custom, treatments) */

.team-mitglied td:first-child {
    width: 5em;
    width: 30%;
    color: var(--color-lightpurple-text);
}

.basic-page table:not(:first-of-type) {
    margin-top: 1em;
}

.basic-page tr:first-child {
    font-size: 1.5em;
}

.basic-page th {
    color: var(--color-white-text);
    background-color: var(--color-red-bg);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.basic-page table:last-of-type th {
    background-color: var(--color-blue-bg);
}

.basic-page td {
    background-color: var(--color-red20-bg);
    border-radius: var(--border-radius);
    border: none;
}

.basic-page table:last-of-type td {
    background-color: var(--color-blue20-bg);
}

/* angebot/e */

body.information-patienten main {
    background-color: var(--color-purple-bg);
    background-image: linear-gradient(-45deg, #180e24, #5a3787);
    color: #fff;
}

body.information-patienten h1 {
    -webkit-text-fill-color: inherit;
}

.boxes {
    display: flex;
    gap: 1em 3em;
    flex-wrap: wrap;
}

.box {
    flex-basis: 100%;
    margin: 0 -1em;
    padding: 0 1em;
    color: var(--color-white-text);
    background-image: linear-gradient(-45deg, #0004, #fff3);
    hyphens: auto;
}

.box.red {
    background-color: var(--color-red-text);
    background-image: linear-gradient(-45deg, #300817, #B62058);
}

.box.blue {
    background-color: var(--color-blue-text);
    background-image: linear-gradient(-45deg, #0c1b2e, #285C9A);
}

.box.purple {
    background-color: var(--color-purple-text);
    background-image: linear-gradient(-45deg, #180e24, #5a3787);
}

@media (min-width: 42em) {
    .boxes {
        gap: 1em 3em;
    }

    .box {
        flex-basis: calc(50% - 1.5em);
        margin: 0 -1em;
        padding: 0 1em;
    }
}

@media (min-width: 66em) {
    .boxes {
        gap: 1em 5em;
    }

    .box {
        flex-basis: calc(33.33% - 3.5em);
        margin: 0 -2em;
        padding: 0 2em;
    }
}

.angebot>main>section>article {
    flex-basis: 100%;
}

/* team */

body.team main {
    flex-grow: 0;
    background-color: var(48, 74, 69);
    background-image: linear-gradient(-45deg, rgba(35, 49, 44), rgba(63, 98, 100));
    color: var(--color-white-text);
}

body.team h1 {
    -webkit-text-fill-color: inherit;
}

body.team main>section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 0;
}

section.team {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

section.team figure {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(100% - 2em);
    margin: 0;
    padding: 0 1em;
    background: linear-gradient(0deg, #0007, transparent);
    border-bottom: 0.5em solid #fff;
}

section.team figure:last-child {
    border-bottom: 0;
}

section.team figure img {
    width: 100%;
    height: auto;
}

section.team figcaption {
    margin: 2em 0 0;
    padding: 0;
    text-align: center;
}

@media (min-width: 62em) {
    section.team figure {
        width: calc(33.3% - 2em);
        border-bottom: 0;
    }

    section.team figcaption {
        margin: 0;
    }
}

/* oeffnungszeiten */

main>.oeffnungszeiten {
    /*width: 100%;*/
    /*background-color: #5a3787;
    background-color: #333;
    background-image: linear-gradient(45deg, #285C9A99 0%, #5a378799 50%, #B6205899 100%);*/
}

main>.oeffnungszeiten>article {
    height: fit-content;
    margin: 0 -1em;
    padding: 1em;
    flex-basis: calc(50% - 2em);
    flex-basis: 100%;
}

main>.oeffnungszeiten>article.ferien {
    flex-basis: 100%;
    text-align: center;
}

main>.oeffnungszeiten>article.ferien>section {
    padding: 1em;
    color: var(--color-white-text);
    background-color: var(--color-red-bg);
}

@media (min-width: 56em) {
    main>.oeffnungszeiten {
        display: flex;
        flex-wrap: wrap;
        gap: 0 4em;
        align-content: flex-start;
    }

    main>.oeffnungszeiten>article {
        flex-basis: calc(50% - 2em);
    }
}

main>.oeffnungszeiten>article>section {
    margin: 0 -1em;
    padding: 0.5em;
    background-color: var(--color-white-bg);
    border-radius: var(--border-radius);
}

main>.oeffnungszeiten th,
main>.oeffnungszeiten td {
    white-space: nowrap;
    border-top: 0;
}

main>.oeffnungszeiten th span {
    display: none;
}

@media (min-width: 36em) {
    main>.oeffnungszeiten th span {
        display: inline;
    }
}

/* contact map */

#leaflet-map {
    width: 100%;
    height: 34em;
    max-height: 75vh;
}

/* form */

/*form ul,
form li {
    margin: 0;
    padding: 0;
}

form ul {
    list-style: none;
}

form li {
    margin: 1em 0;
}

form label {
    color: var(--color-blue-text);
    color: var(--color-purple-text);
    font-weight: 600;
}

form ul.InputfieldRadiosStacked li {
    display: inline-block;
    margin-right: 1em;
}

form ul.InputfieldRadiosStacked label span {
    color: var(--color-purple-text);
    font-weight: 400;
    margin-left: 0.25em;
}

textarea,
input[type="text"],
input[type="email"] {
    font: inherit;
    width: calc(100% - 1em - 2px);
    padding: 0.5em;
    color: var(--color-blue-text);
    border: 1px solid #0003;
    border-radius: var(--border-radius);
    outline-color: var(--color-blue-text);
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus {
    background-color: var(--color-lightblue-bg);
    color: var(--color-black-text);
}

textarea {
    height: 6.5em;
}

button {
    padding: 0.33em 0.67em;
    background-color: var(--color-blue-bg);
    border: none;
    border-radius: var(--border-radius);
    font: inherit;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

button span {
    color: var(--color-white-text);
    font-weight: 600;
}
*/

/* footer */

body>footer {
    /*color: #fff9;
    background-color: var(--color-purple-bg);*/
    /*color: var(--color-white-text);*/

    /*background-color: #f3eff7;*/

    background-color: var(--color-footer-bg);
    /*background:
        linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .5)),
        radial-gradient(ellipse at bottom, rgba(90, 55, 135, 0.13), transparent),
        linear-gradient(180deg, rgba(48, 111, 186, 0.13), rgba(0, 0, 0, 0.02));
        */
}

body>footer>section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1em;
    padding-top: 3em;
    padding-bottom: 3em;

    /*border-top: 1px solid #0001;*/
}

body>footer a {
    color: inherit;
    border: none;
    /*border-bottom-color: var(--color-white-text);*/
}