/* stylesheet for sebastian-daschner.com */

@font-face {
    font-family: 'OpenSans';
    src: local("OpenSans-Regular"), url('../fonts/OpenSans-Regular.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SourceSerifPro';
    src: local("SourceSerifPro-Regular"), url('../fonts/SourceSerifPro-Regular.otf.woff') format("woff"), url('../fonts/SourceSerifPro-Regular.ttf') format("truetype"), url('../fonts/SourceSerifPro-Regular.otf') format("opentype");
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: 'SourceSerifProSemibold';
    src: local("SourceSerifPro-Semibold"), url('../fonts/SourceSerifPro-Semibold.otf.woff') format("woff"), url('../fonts/SourceSerifPro-Semibold.ttf') format("truetype"), url('../fonts/SourceSerifPro-Semibold.otf') format("opentype");
    font-weight: normal;
    font-style: normal
}

html {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'SourceSerifPro', serif;
    font-size: 1em;
    height: 100%;
}

html, body, div, img, a, p, ul, li {
    margin: 0;
    padding: 0;
    border: 0;
}

.no_justify p {
    text-align: left;
}

p {
    line-height: 1.5em;
    margin: 0.8em 0 0.8em 0;
    text-align: justify;
}

h1, h2 {
    font-weight: normal;
}

h2 {
    font-family: 'SourceSerifProSemibold', serif;
    margin: 0 0 0.2em 0;
}

h3 {
    font-size: 1em;
    line-height: 1em;
    font-weight: bold;
    margin: 2em 0 1em 0;
}

hr {
    border: none;
    border-top: 1px solid #7595a4;
    margin-bottom: 2rem;
}

hr.dotted {
    border-top: 1px dotted #7595a4;
    margin: 0;
}

main h3:first-child {
    margin-top: 1em;
}

main h2 a, main h3 a {
    font-family: 'SourceSerifPro', serif;
    font-size: 1em;
}

a {
    text-decoration: underline;
    color: #000;
}

a:hover {
    color: #7595a4;
}

div#content {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 0 -6.8em 0;
}

header a:before, header a:after,
h2 a:before, h2 a:after,
h3 a:before, h3 a:after,
a.no_highlight:before, a.no_highlight:after,
a.image:before, a.image:after,
.no_highlight a:before, .no_highlight a:after {
    content: "";
}

header {
    max-width: 50em;
    margin: 0 auto 4em auto;
    padding-top: 3em;
    text-align: center;
}

header h1 {
    font-size: 2em;
    letter-spacing: 0.2em;
    margin: 0;
}

header hr {
    border-top: 1px solid #000;
    border-right: none;
    border-bottom: none;
    border-left: none;
    margin: 1em 0;
}

header ul {
    font-family: 'OpenSans', sans-serif;
    list-style: none;
    float: right;
}

header ul li {
    float: left;
    padding: 0 0.8em 0.1rem 0.8rem;
    border-right: 1px solid #a6ceef;
    position: relative;
}

header ul li:last-child {
    border: none;
    padding: 0 0 0.1rem 0.8rem;
}

header ul ul {
    display: none;
    position: absolute;
    float: unset;
    border: 1px solid #eee;
    text-align: left;
    background: #fff;
    width: max-content;
    padding: 0.6rem;
    margin-left: -0.9rem;
    margin-top: 0.1rem;
    animation: fadeIn 300ms;
}

header ul li:hover ul {
    display: block;
}

header ul ul li {
    float: unset;
    border-right: unset;
    border-bottom: 1px solid #a6ceef;
    padding: 0.4rem 0 0.4rem 0;
    margin: 0;
}

header ul li li:last-child {
    padding: 0.4rem 0 0 0;
}

header ul ul li:first-child {
    padding: 0 0 0.4rem 0;
}

main {
    color: #333;
    max-width: 50em;
    margin: 0 auto;
    padding: 1em;
}

main a {
    font-family: 'OpenSans', sans-serif;
    font-size: 0.9em;
}

main ul {
    padding-left: 1em;
}

main ul li p {
    margin: 0;
    vertical-align: text-top;
    text-align: left;
}

.claim {
    font-style: italic;
    letter-spacing: 0.05em;
    text-align: center;
}

.teaser {
    border-bottom: 1px solid #ddd;
    padding: 1.5em 0;
}

.teaser span, span.date {
    font-size: 0.9em;
    display: block;
    margin-bottom: 1.4em;
    color: #7595a4;
}

span.tags {
  font-size: 0.9rem;
  display: inline-block;
  float: right;
}

.teaser p {
    margin: 0;
}

.bottom1_5em {
    margin-bottom: 1.5em;
}

.bottom3em {
    margin-bottom: 3em;
}

.right1em {
    margin-right: 1.0em;
}

div#content:after {
    content: "";
    display: block;
    height: 6.8em;
}

footer {
    max-width: 50em;
    margin: 0 auto;
    padding: 2.5em 0 2.5em 0;
    text-align: center;
}

@media (max-width: 46.875em) {

    header {
        margin-bottom: 1em;
        padding-top: 1em;
    }

    header h1 {
        font-size: 1.5em;
    }

    header ul {
        float: none;
    }

    header ul li {
        display: inline;
        float: none;
    }

    footer {
        padding: 1em 0;
    }

    div#content {
        margin-bottom: -3.8em;
    }

    div#content:after {
        height: 3.8em;
    }

}

@media (max-width: 26.25em) {

    header h1 strong {
        display: block;
    }

}

@media (max-width: 46.875em) {
    main.wide {
        font-size: 0.8em;
    }
}

.gloria {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    font-size: 1.4em;
    letter-spacing: 0.1em;
}

.cross {
    color: #a03030;
}

main.wide {
    max-width: 60em;
}

/* bilingual layout */
.bilingual {
    display: flex;
    gap: 1em;
    margin: 0.5em 0 1em 0;
}

.col-la, .col-de {
    flex: 1;
    min-width: 0;
}

.col-de {
    color: #666;
    border-left: 1px solid #ddd;
    padding-left: 1em;
}

.day-nav {
    text-align: center;
    margin: 1em 0 1.5em 0;
}

.day-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em;
    padding: 0;
}

.day-nav li {
    display: inline;
}

.day-nav a {
    display: inline-block;
    padding: 0.3em 0.7em;
    border: 1px solid #7595a4;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
}

.day-nav a:hover {
    background: #e8f0f4;
    color: #333;
}

.day-nav a.active {
    background: #7595a4;
    color: #fff;
}

.day-prayer {
    display: none;
}

.day-prayer.active {
    display: block;
}

