:root {
    font-size: 14pt;
}

body {
    font-family: "PT Sans";
    font-weight: normal;
    color: var(--c-ocean);
    padding: 0;
    margin: 0;
    background-color: white;
    line-height: 175%;
    display: grid;
    grid-template-rows: auto auto auto /*auto*/ 1fr;
    min-height: 100vh;
}

h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: var(--c-ocean);
    text-transform: uppercase;
    clear: both;
}

h3 {
    font-weight: bold;
    color: var(--c-ocean);
    clear: both;
}

a {
    position: relative;
    color: var(--c-coral);
    text-decoration: none;
}
a:hover::after {
    background-size: 73.8px 3px;
    height: 3px;

    border-radius: 5px;
    content: "";
    width: 100%;
    bottom: -0.2em;
    right: 0;
    position: absolute;
    background-image: url("dam-wave-underline.svg");
    background-repeat: repeat-x;
    animation-name: link-wave;
    animation-duration: 7.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes link-wave {
    from {
        background-position: 0px 0;
    }

    to {
        background-position: 123px 0;
    }
}

section.page-content {
    padding: var(--s-text-padding);
    padding-top: 0;
}
section.page-content > :first-child {
    margin-top: 0;
    margin-block-start: 0;
}

p {
    text-align: justify;
}
/*p:first-child::first-letter {
    display: block;
    font-family: "DAM-Initialen";
    float: left;
    font-size: 4.5em;
    line-height: 1;
    margin: -1rem 0;
    margin-top: -0.5rem;
    margin-right: 0.3rem;
}*/

.linkonly ul {
    list-style-type: none;
}

.linkonly li > a::before {
    list-style-type: none;
    content: "» "
}

.image-description > p {
    display: inline;
}
.image-float > img {
    max-width: 100%;
}

header {
    background-color: white;
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
}
header .menu {
    padding: 0 var(--s-text-padding);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5em;
}
header a {
    color: var(--c-ocean);
}

a.menu-link {
    position: relative;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    font-weight: 800;
}
a:hover.menu-link {
    text-decoration: none;
    color: var(--c-coral);
}
a.menu-link:hover::after {
    background-size: 123px 5px;
    height: 5px;
}

header a.menu-lang {
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
}
header a.menu-lang.selected {
    color: var(--c-coral);
}

.page-logo {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem;
    margin: 0;
}
.page-logo a {
    height: 3em;
}
a.no-underline::after {
    display: none;
}

.dam-logo a {
    height: 3em;
}

/*p > img:first-child {
    float: left;
    max-height: 2.5em;
    margin-right: 0.5em;
    margin-bottom: 0.25em;
    margin-top: 0.25em;
}*/

footer {
    background-color: var(--c-ocean);
    /*padding: var(--s-text-padding);*/
}
footer > div {
    display: flex;
    gap: var(--s-text-padding);
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
footer a {
    color: var(--c-grey-3);
}
footer.bmbf {
    background-color: white;
    /* padding: 0;*/
}
footer.bmbf > div {
    gap: 0.5em;
    height: 5em;
}

#detach-button-host {
    display: none;
}

section.hero-banner {
    display: grid;
    position: relative;
    overflow: hidden;
    background-color: var(--c-ocean);
    background-image: linear-gradient(to bottom right, var(--c-ocean), var(--c-brown-conmar));
    grid-template-rows: auto auto;
}

section.hero-banner video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: soft-light;
    filter: grayscale(100%);
}

#page-title-container {
    padding-top: 5rem;
}

section.hero-banner h1 {
    font-size: 2rem;
    color: var(--c-grey-3);
    margin: 0 1rem;
}
section.hero-banner h2 {
    font-size: 1.25rem;
    color: var(--c-grey-3);
    margin: 0 1rem;
    margin-top: 2rem; 
}
 
section.hero-banner canvas#wave-canvas {
    width: 100%;
    height: 10em;
    position: relative;
    bottom: -1px;
}

a > img {
    height: 100%;
    width: 100%;
}

a.dam-logo {
    min-height: 0.6cm;
    height: 1.5em;
}

@media (min-width: 71rem) {
    section.page-content {
        width: var(--s-text-width);
        margin: 0 auto;

    }

    footer > div {
        width: var(--s-text-width);
        margin: 0.5em auto;
    }

    header {
        grid-template-columns: 1fr calc(var(--s-text-width) + 2 * var(--s-text-padding)) 1fr;
    }

    #page-title-container {
        padding-left: calc(50vw - var(--s-text-width) / 2); 
        padding-right: calc(50vw - var(--s-text-width) / 2); 
        padding-bottom: 0;
    }
}

.news-images, .news-images>p{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10%;
}

.page-content img{
    /*max-width: 100%;*/
}

.news-images img{
    max-height: 20em !important;
    border-right: 1em;
    flex-shrink: 1;
}

.tile-container{
    display: grid;
    grid-template-columns: 40vmin 40vmin; 
    grid-template-rows: 40vmin 40vmin;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.tile{
    background-color: var(--c-ocean);
    color: var(--c-grey-3);
    width: 35vmin;
    height: 35vmin;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-size: 3.5vmin;
    text-transform: uppercase;
    font-weight: 800;
}

.tile:hover{
    color: var(--c-coral);
}