html {
    height: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.center {
    text-align: center;
}

main {
    flex: 1;
}

h2 {
    color: rgb(34, 137, 161);
    text-align: center;
}

a {
    color: rgb(34, 137, 161);
}

header {
    background-color: white;
    text-align: center;
}

header h1 {
    color: rgb(34, 137, 161);
}

header h1 img {

    vertical-align: middle;
}

nav {
    background-color: rgb(34, 137, 161);
    position: sticky;
    z-index: 12000;
    top: 0;
}

nav ol {
    display: inline-block;
    line-height: 150%;
}

nav hr {
    margin: 0;
    padding: 0;
}

nav ol.sub-menu {
    margin-left: auto;
    margin-right: auto;
    display: none;
}

nav ol.sub-menu.visible {
    display: inline-block;
}


nav li {
    display: inline-block;
}

nav img.logo {
    width: 1rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: smaller;
    margin-right: 1rem;
    padding: 0.2rem;
}

nav a.active {
    background-color: white;
    color: rgb(34, 137, 161);
}

nav h2 {
    color: white;
    font-size: smaller;
    text-transform: uppercase;
    padding: 1rem;
    margin: 0;
    float: right;
}

section {
    padding: 5rem 0;
}

section.landing {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%), url(img/moosbild_im_eingangsbereich.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 30rem;
    padding-top:10rem;
    padding-left:10rem;
}

section.landing .slogan {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    width: 40%;
    text-shadow: 1px 1px 0.1rem black;
}

a.button {
    display: inline-block;
    width: fit-content;
    text-wrap: nowrap;
    border-radius: 3rem;
    padding: 1rem;
    color: white;
    text-decoration: none;
    background-color: rgba(34, 137, 161, 1);
    font-weight: bold;
}

a.button:hover {
    background-color: rgba(34, 137, 161, 0.8);
}

section.landing a.button {
    border: 0.2rem solid white;
    background-color: rgba(34, 137, 161, 0.2);
    margin: 2rem;
}

section.landing a.button:hover {
    background-color: rgba(34, 137, 161, 1);
    border-color: rgba(34, 137, 161, 1);
}

section.introduction {
    max-width: 500px;
    margin: auto;
    padding: 5rem 1rem 0 1rem;
}

section.introduction ul {
    font-size: larger;
    padding: 0;
    list-style: none;
}

section.introduction h2 {
    padding-left: 1rem;
}

section.introduction h3 {
    margin-top: 3rem;
}

section.introduction li::before {
    content: "▶";
    margin-right: 1rem;
}

section.introduction li {
    margin-top: 1rem;
}

section.overview {
    display: flex;
    flex-wrap: wrap;
    text-align: justify;
    justify-content: center;
}

section.overview h2 {
    width: 100%;
}

section.overview h3 {
    text-align: center;
}

section.overview a {
    font-weight: bold;
}

section.overview .column {
    width: 20%;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

section.overview .column p {
    flex-grow: 1;
}

section.overview .column img {
    width: 100%;
    aspect-ratio: 4/3;
    display: block;
    margin: auto;
}

section.overview .column a.button {
    display: block;
    margin: auto;
}

section.map {
    padding: 0;
}

section.map iframe {
    width: 100%;
    aspect-ratio: 2/1;
    min-height: 20rem;
}

section.contact {
    padding: 5rem 20%;
}

section.single-page {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

dl.hours dd {
    margin: 0;
    padding-top: 0.2rem;
}

dl.hours dd::after {
    content: " Uhr";
}

dl.hours dt::after {
    content: ":";
}

dl.hours dt:not(:first-child) {
    padding-top: 1rem;
}

section.team .team-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

section.team .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(180, 180, 180, 0.644);
    box-shadow: 0 0 0.5rem rgba(180, 180, 180, 0.644);
    margin: 1rem;
    padding: 0.5rem;
    width: max(15%, 10rem);
    aspect-ratio: 3/4;
}

section.team img.portrait {
    display: block;
    width: 50%;
    margin-top: 20%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
}

section.team .card h2 {
    margin-top: 20%;
    margin-bottom: 0.2rem;
}

section.team .role {
    text-align: center;
}

section.single-page.width-limit {
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}

section.single-page.pressefaehig {
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    width: min(50rem, 90%)
}

section.single-page.pressefaehig ul {
    margin-left: auto;
    margin-right: auto;
}

section.single-page.pressefaehig ul:first-of-type {
    width: 90%;
    -moz-column-count: 3;
    -moz-column-gap: 20px;
    -webkit-column-count: 3;
    -webkit-column-gap: 20px;
    column-count: 3;
    column-gap: 20px;
}

section.single-page.pressefaehig ul ul:first-of-type {
    -moz-column-count: 1;
    -webkit-column-count: 1;
    column-count: 1;
    break-before: avoid-column;
}

section.single-page.pressefaehig ul:nth-of-type(2) {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 20rem;
    padding-left: 8rem;
    column-gap:  5rem;
}

section.single-page.pressefaehig ul:nth-of-type(2) > li {
    margin-top: 0.5rem;
}

section.single-page.personenkreis img {
    box-sizing: border-box;
    width: 100%;
}

section.single-page.personenkreis > * {
    padding-left: 5rem;
    padding-right: 5rem;
}

section.single-page.personenkreis > ul {
    padding-left: 7rem;
    padding-right: 5rem;
}

section.single-page.contact {
    display: flex;
    padding: 2rem;
}

section.single-page.contact .contact-info {
    padding: 2rem;
}

section.single-page.contact .map {
    flex: 1;
}

section.single-page.contact .map iframe {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

footer {
    background-color: #EEE;
    padding: 5rem;
    text-align: center;
}

footer div {
    margin-top: 0.5rem;
}

.social-media {
    font-size: 4rem;
    text-decoration: none;
}

.imprint a {
    padding-right: 0.5rem;
    font-weight: bold;
}

.img-text {
    display: grid;
    grid-template-rows: 1fr min-content 1fr;
    grid-template-columns: minmax(min-content, max-content) 5rem 1fr;
    align-items: center;
}

.img-text > img {
    grid-row: 1 / -1;
    grid-column: 1 / -1;
    z-index: 2000;
    max-height: 450px;
    object-fit: cover;
}

.img-text > p {
    grid-row: 2;
    grid-column: 1;
    z-index: 9001;
    padding: 3rem 12rem 3rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    overflow: hidden;
    background-color: rgba(34, 137, 161, 0.7);
    clip-path: polygon(
    0 0,
    calc(100% - 10rem) 0,
    100% 50%,
    calc(100% - 10rem) 100%,
    0 100%,
    0 0
  )
}

@media screen and (max-width: 900px) {
    section {
        padding: 5rem 1rem;
    }
    section.contact {
        padding: 5rem 1rem;
    }
    section.landing {
        padding-top:3rem;
        padding-left:3rem;
    }
    section.landing .slogan {
        width: 90%;
    }
    section.overview .column {
        width: 100%;
    }
    nav h2 {
        display: none;
    }
    section.single-page.personenkreis > * {
        padding-left: 0;
        padding-right: 0;
    }
    section.single-page.personenkreis > ul {
        padding-left: 2rem;
        padding-right: 0;
    }
    section.single-page.contact {
        flex-direction: column-reverse;
    }
    section.single-page.contact .map iframe {
        aspect-ratio: 1/1;
    }
    .img-text > p {
        font-size: 1.2rem;
    }
    .img-text {
        grid-template-columns: minmax(min-content, max-content) 5rem;
    }
}

@media screen and (max-width: 800px) {
    section.single-page.pressefaehig ul:first-of-type {
        width: min(25rem, 90%);
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
    section.single-page.pressefaehig ul:nth-of-type(2) {
        width: min(25rem, 90%);
        display: block;
        height: auto;
        padding-left: revert;
    }
    .img-text > p {
        font-size: 1.1rem;
        font-weight: normal;
    }
}

@media screen and (max-width: 600px) {
    section.team .card {
        width: 90%;
        aspect-ratio: 1;
    }
    section.team img.portrait {
        margin-top: 15%;
    }
    section.team .card h2 {
        margin-top: 10%;
    }
    section.single-page.contact .contact-info {
        padding: 0;
    }

    .img-text {
        grid-template-columns: minmax(min-content, max-content) 1rem;
    }
    .img-text > p {
        font-size: 0.9rem;
        padding: 0.5rem 5rem 0.5rem 0.5rem;
        margin: 0;
        color: white;
        overflow: hidden;
        background-color: rgba(34, 137, 161, 0.7);
        clip-path: polygon(
        0 0,
        calc(100% - 3rem) 0,
        100% 50%,
        calc(100% - 3rem) 100%,
        0 100%,
        0 0
    )
    }

    footer {
        padding: 2rem;
    }
}
