html,
body {
    font-family: vollkorn, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-size: 18px;
    --image-gallery-gutter: 0.5rem;
}

body {
    background: rgba(186, 228, 181, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html * {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: red;
    transition: color 0.1s, text-shadow 0.1s;
    text-shadow: rgba(0, 0, 255, 0.25) 1px 1px 2px;
}

a:hover {
    color: #006400;
    text-shadow: rgba(0, 100, 0, 0.25) 1px 1px 2px;
}

header {
    text-align: center;
    background: transparent;
    background: linear-gradient(180deg, rgba(63, 84, 253, .2) 0%, rgba(143, 228, 132, 0.15) 52%, rgba(143, 228, 132, 0.1) 76%, rgba(143, 228, 132, 0) 100%);
    padding-bottom: 0.5rem;
}

.sun {
    position: absolute;
    top: -35px;
    left: -35px;
    margin: auto;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff3b0;
    opacity: 0.9;
    box-shadow: 0px 0px 40px 15px #fff3b0;
}

.ray_box {
    position: absolute;
    margin: auto;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 70px;
    /* animation: ray_anim 60s linear infinite; */
}

.ray {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    margin-left: 10px;
    border-radius: 80% 80% 0 0;
    position: absolute;
    opacity: 0.1;
}

.ray1 {
    height: 170px;
    width: 30px;
    transform: rotate(180deg);
    top: -175px;
    left: 15px;
}

.ray2 {
    height: 100px;
    width: 8px;
    transform: rotate(220deg);
    top: -90px;
    left: 75px;
}

.ray3 {
    height: 170px;
    width: 50px;
    transform: rotate(250deg);
    top: -80px;
    left: 100px;
}

.ray4 {
    height: 120px;
    width: 14px;
    transform: rotate(305deg);
    top: 30px;
    left: 100px;
}

.ray5 {
    height: 140px;
    width: 30px;
    transform: rotate(-15deg);
    top: 60px;
    left: 40px;
}

.ray6 {
    height: 90px;
    width: 50px;
    transform: rotate(30deg);
    top: 60px;
    left: -40px;
}

.ray7 {
    height: 180px;
    width: 10px;
    transform: rotate(70deg);
    top: -35px;
    left: -40px;
}

.ray8 {
    height: 120px;
    width: 30px;
    transform: rotate(100deg);
    top: -45px;
    left: -90px;
}

.ray9 {
    height: 80px;
    width: 10px;
    transform: rotate(120deg);
    top: -65px;
    left: -60px;
}

.ray10 {
    height: 190px;
    width: 23px;
    transform: rotate(150deg);
    top: -185px;
    left: -60px;
}

@keyframes ray_anim {
    0% {
        transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

nav a,
main h2 a {
    text-shadow: rgba(0, 0, 255, 0.5)1px 1px 2px;
}

main h3 a {
    text-shadow: rgba(0, 0, 255, 0.3)1px 1px 2px;
}

nav a:hover,
main h2 a:hover {
    text-shadow: rgba(0, 100, 0, 0.5)1px 1px 2px;
}

main h3 a:hover {
    text-shadow: rgba(0, 100, 0, 0.3)1px 1px 2px;
}

a[href^="https://www.youtube.com/"] {
    position: relative;
    display: block;
}

a[href^="https://www.youtube.com/"]:before {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    content: '▶️';
    font-size: 4rem;
}

p {
    text-align: left;
}

h1,
h2 {
    text-shadow: rgba(0, 0, 0, 0.4)1px 1px 2px;
}

h1 {
    color: #49496a;
    margin: 0;
    /* padding-bottom: 1rem; */
}

hr {
    box-shadow: rgba(0, 100, 0, 0.5) 1px 1px 2px;
    color: darkgreen;
    opacity: 0.5;
}

nav {
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul li {
    margin: 1rem;
    white-space: nowrap;
}

main {
    flex: 1;
    width: 100%;
    max-width: calc(768px - 1rem);
    margin: 1rem auto;
    padding: 0 0.5rem;
}

pre.date {
    margin: 0;
}

pre.date:before {
    display: inline;
    content: '📅 ';
}

pre.author {
    margin-top: 0;
    margin-bottom: 1rem;
}

pre.author:before {
    display: inline;
    content: '👤 ';
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 0 auto;
    display: block;
}

a.responsive-image {
    position: relative;
    display: block;
    transform: scale(1);
}


/*noinspection CssUnresolvedCustomProperty*/

a.responsive-image:after {
    display: block;
    content: var(--image-title);
    text-align: center;
    padding-top: calc(var(--image-ratio) + 0.25rem);
    padding-bottom: 0.25rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

a.responsive-image>img.preload {
    position: absolute;
    width: 100%;
    filter: blur(10px);
}

a.responsive-image picture {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

a.responsive-image picture img {
    width: 100%;
}

div.image-with-text,
div.p {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

div.image-with-text:after,
div.p:after {
    display: block;
    content: '';
    clear: left;
}

div.image-with-text .text,
div.p .t {
    text-align: left;
}

div.image-with-text .responsive-image,
div.p .responsive-image {
    margin: -0.25rem 1rem 0 0;
    float: left;
}

div.image-with-text.image-25 .image {
    width: 25%;
}

div.image-with-text.image-33 .image {
    width: 33.333%;
}

div.image-with-text.image-50 .image {
    width: 50%;
}

div.image-with-text a.responsive-image,
div.p a.responsive-image {
    width: 100%;
}

div.image-with-text a.responsive-image,
div.p a.responsive-image {
    min-width: 200px;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.image-gallery.gallery-50 .responsive-image,
.g.i-50 .responsive-image {
    flex: 1;
    min-width: calc(50% - 2*var(--image-gallery-gutter));
}

.image-gallery.gallery-50 .responsive-image:nth-child(2n+1),
.g.i-50 .responsive-image:nth-child(2n+1) {
    margin-right: var(--image-gallery-gutter);
}

.image-gallery.gallery-50 .responsive-image:nth-child(2n),
.g.i-50 .responsive-image:nth-child(2n) {
    margin-left: var(--image-gallery-gutter);
}

.image-gallery.gallery-33 .responsive-image,
.g.i-33 .responsive-image {
    flex: 1;
    min-width: calc(33.33% - 2*var(--image-gallery-gutter));
}

.image-gallery.gallery-33 .responsive-image:nth-child(3n+1),
.g.i-33 .responsive-image:nth-child(3n+1) {
    margin-right: var(--image-gallery-gutter);
}

.image-gallery.gallery-33 .responsive-image:nth-child(3n+2),
.g.i-33 .responsive-image:nth-child(3n+2) {
    margin: 0 var(--image-gallery-gutter);
}

.image-gallery.gallery-33 .responsive-image:nth-child(3n),
.g.i-33 .responsive-image:nth-child(3n) {
    margin-left: var(--image-gallery-gutter);
}

.image-gallery .responsive-image:last-child,
.g .responsive-image:last-child {
    margin-right: 0 !important;
}

.big-center {
    font-size: 2em;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/*noinspection CssUnresolvedCustomProperty*/

div.light-box-content:after {
    display: block;
    content: '';
    padding-top: var(--image-ratio);
}

div.light-box-content iframe {
    background: black;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

span.date {
    padding-left: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

span.date:before {
    display: inline;
    content: '📅 '
}

ul.tags {
    margin: 0;
    padding: 0;
    text-shadow: rgba(0, 0, 0, 0.2)1px 1px 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

ul.tags:before {
    display: inline;
    margin-right: 0.5rem;
    content: '🏷️ Tags:';
}

ul.tags li {
    display: inline;
    white-space: nowrap;
}

ul.tags li:after {
    display: inline;
    margin-right: 0.2rem;
    content: ',';
}

ul.tags li:last-of-type:after {
    display: none;
}

ul.all-tags:before {
    display: inline;
    content: '🏷️ Alle Tags: ';
    font-size: 1.25rem;
    font-weight: bold;
}

div.pagination {
    margin: 2rem 0;
}

.post-container {
    display: flex;
    flex-wrap: wrap;
}

.post-container .post {
    flex: 1;
    min-width: calc(50% - 1rem);
    background: #eef2ee;
    margin: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 1px 1px 1px #ccd0cc;
    display: flex;
    flex-direction: column;
}

.post-container .post .preview-image {
    margin-top: 1rem;
}

.post-container .post .excerpt {
    flex: 1;
}

.post-container .post.post-fullwidth {
    /* min-width: calc(100% - 1rem); */
}

.post-container .date {
    display: block;
}

.post-container h3 {
    margin: 0;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: linear-gradient(180deg, rgba(225, 169, 255, 0) 0%, rgba(225, 169, 95, 0.4) 88%, rgba(225, 169, 95, 0.4) 100%);
}

@media screen and (min-width: 1281px) {
    html,
    body {
        font-size: 20px;
    }
    main {
        max-width: calc(1000px - 1rem);
    }
}

@media screen and (min-width: 1921px) {
    html,
    body {
        font-size: 24px;
    }
    main {
        max-width: calc(1200px - 1rem);
    }
}

@media screen and (max-width: 768px) {
    main {
        margin: 0 .5rem;
    }
    .big-center {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 640px) {
    .post-container .post {
        min-width: calc(100% - 1rem);
    }
}

@media screen and (max-width: 480px) {
    html,
    body {
        font-size: 16px;
    }
    nav {
        font-size: 1rem;
    }
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    p {
        margin: 0.5rem 0;
    }
    div.image-with-text .image {
        width: 100% !important;
    }
    div.image-with-text {
        display: flex;
        flex-direction: column-reverse;
        margin-top: 0;
    }
    div.image-with-text .text,
    div.p .t {
        margin-bottom: 1rem;
    }
    div.image-gallery,
    div.g {
        display: block;
    }
}
