/*
Theme Name: myBlog
Author: Schüler*innen an der Graphischen
Description: Übungs-Theme für einen Blog.
Version: 9.2
*/

@import url('https://fonts.googleapis.com/css?family=Fira+Sans|Roboto+Mono&display=swap');
@import url('https://fonts.cdnfonts.com/css/helvetica-neue-55');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* verhindert das Anzeigen von Transitions beim Laden der Seite */
.preload {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

body {
    background-color: black;
    font-family: 'Roboto Mono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* SITE-HEADER-Elemente */

.site-header {
    /* fixierter HEADER 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;*/

    position: relative;
    z-index: 9999;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

    padding: 1.2rem 4%;
    background-color: rgb(0, 0, 0);
}

header a,
.menu a,
.content-header a,
h1 a,
h2 a,
h4 a,
.post-links a,
.footer-widgets a,
.show-more {
    text-decoration: none;
}

.site-logo {
    margin: 0 2rem 0 0.5rem;
}

.site-logo a {
    display: block;
    width: 14rem;
    height: 7rem;

    background-image: url(/wp-content/themes/myBlog9.2/img/pixelwave_logo.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;

    text-indent: -3000px;

    /* Logo mit Text 
    
    text-indent: 0;
    
    font-family: 'Fira Sans', sans-serif;
    font-size: 2.4em;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    word-spacing: -0.05em;
    letter-spacing: 0.05em;
   
    */
}

section {
    background-color: black;
}


/* für alle MENU-Elemente */
.menu,
.menu > ul {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;
    list-style: none;
}

.menu li {
    position: relative;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}

/* Menü mit Bildern als Trennzeichen:

.menu>li::after {
    content: "";
    display: inline-block;
    vertical-align: middle;

    width: 1em;
    height: 1em;
    margin: 0 0.8em 0 1em;

    background-image: url(/wp-content/themes/myBlog9.2/img/menu-after.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.menu li:last-of-type::after,
    .main-menu li:last-of-type::after {
    display: none;
}
*/

.menu a {
    display: inline-block;
    vertical-align: middle;
    padding: 0.3em 0.6em 0.3em 0.6em;

    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 1.1em;
    color: #bababa;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.menu li:hover > a,
.current-menu-item > a,
.current-menu-parent > a,
.home .main-menu ul > li:first-of-type a {}

.menu li:hover > a {
    color: white;
}


/* SUB-MENU */
.no-touchevents .menu li:hover .sub-menu {
    display: block;
}

.sub-menu {
    margin-top: 0.5em;
}

.sub-menu li {
    padding: 0.2em;
    margin: 0;
    display: block;
}

.sub-menu a {
    font-size: 0.8em;
}


/* Hauptmenü mit Suchfunktion */
.main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.searchform {
    display: none;
    position: relative;
    margin-left: 3rem;
    height: 2.4em;
}

.searchform input {
    vertical-align: middle;
    -webkit-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
}

.searchform input[type=text] {
    width: 10em;
    border: none;
    border-bottom: solid 3px #000;
    padding: 0.2em 0.5em;
    background-color: transparent;
}

.searchform input[type=image] {
    height: 2.4em;
    width: auto;
    margin-left: 0.5em;
}

.searchform input:focus {
    background-color: #fff;
    outline: none;
}

/* ENDE Hauptmenü mit Suchfunktion */


/* CONTENT-Elemente */

main {
    position: relative;
    flex-basis: 15rem;
    flex-grow: 1;
}

.content-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-end;
}

.home .content-header {
    justify-content: center;
    align-items: center;
}

.content-header.bg-header {
    height: calc(100vw * (9/16));
    background-color: #efefef;
    background-image: url("/wp-content/themes/myBlog9.2/img/we_create.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.content-header.thumb-header {
    position: relative;
    min-height: 36vw;
    height: 60vh;
    max-height: 600px;
    overflow: hidden;
    margin: 0 auto;
}


/* BSP Hintergrundbild auf .CONTENT-HEADER in HOME */
.home .content-header.bg-header {

    /* direkt im IMG-Ordner des Themes platziert, wenn vor allem ein gleichbleibendes gestalterisches Element: */
    background-size: 100%, cover;
    background-position: center, center;
    background-color: black;

    /* aus der Mediathek und über relativen Pfad verlinkt: 
    background-image: url(/wp-content/uploads/2021/04/Bananen-Brot-Banana-Bread.jpeg);*/

    /* WEIL problematisch, wenn man den Server wechselt!: 
    background-image: url(https://emirtl.multimedia.graphische.net/myblog/wp-content/uploads/2021/04/Bananen-Brot-Banana-Bread.jpeg);*/
}


h1,
h2,
h3,
h4 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: normal;
}

h1 {
    margin: 0;
    font-size: 1.8em;
    line-height: 1em;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.content-header > * {
    position: relative;
    z-index: 100;
    padding: 0.4em 4%;

    background-color: white;
}

.content-header .claim {
    background-color: rgba(255, 255, 255, 0.5);
    color: rgba(40, 40, 40, 1);
    font-size: 4vw;
    text-align: center;
}

.breadcrumbs {
    width: 100%;
    border-top: solid #333 2px;
    /*    border-bottom: solid #333 2px;*/
}

.inner-breadcrumbs {
    display: inline-block;
    font-size: 0.9em;
    line-height: 1.4em;
    white-space: nowrap;
}

.inner-breadcrumbs::after {
    content: "\00BB";
    display: inline-block;
    margin: 0 0.2em;
}

.inner-breadcrumbs:last-of-type::after {
    content: none;
}

.inner-breadcrumbs .cat-name::after {
    content: ", ";
    color: #666;
}

.inner-breadcrumbs .cat-name:last-of-type::after {
    content: none;
}

.inner-breadcrumbs a {
    color: #666;
}

.inner-breadcrumbs a:hover {
    color: #333;
}

/* ENDE Breadcrumbs in CONTENT-HEADER! */


/* Artikel-Container in HOME */
.thumbbg-box.post-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 120rem;
    margin: 6em auto;
}


article {
    max-width: 1140px;
    margin: 4em auto 6em;
    padding: 2em 2em 4em 2em;
    background-color: #fff;
}


.single-post article {
    margin: 0 auto 2em;
}

.category-posts article {
    position: relative;

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;

    /*    width: 80%;*/
    padding: 2em;
    box-shadow: 0 5px 5px rgba(220, 220, 220, 0.4);
}

.category-posts article:nth-of-type(even) {
    flex-direction: row-reverse;
}

/* Artikel in HOME */
.thumbbg-box article {
    flex-basis: calc(33.33% - 2vw);
    justify-content: center;
    min-height: 35ch;
    max-height: 45ch;
    margin: 1vw;
    padding: 0;

    background-color: #efefef;
}

.bg-permalink {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.post-thumb {
    margin: 0 0 2em;
}

.category-posts:not(.thumbbg-box) .post-thumb {
    position: relative;
    flex-basis: 360px;
    flex-grow: 2;
    min-height: 40vh;
    max-height: 500px;
    margin: 0;
    overflow: hidden;
    text-align: center;
}


.thumb-header .post-thumb {
    position: absolute;
    left: 0;
    top: 0;
    /*    z-index: -1;*/
    width: 100%;
    height: 100%;
}

.category-posts .post-thumb img,
.thumb-header .post-thumb img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.category-posts .post-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
    flex-basis: 40ch;
    flex-grow: 1;
    background-color: #fff;
    padding: 1em 3ch 0.5em;
}

.category-posts .post-text.no-thumb {
    flex-basis: 100%;
}

/* Artikel-Text in HOME */
.thumbbg-box .post-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(255, 255, 255, 0.85);
    padding: 1.5em 2ch;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.thumbbg-box .post-text.no-thumb {
    opacity: 0.6;
}

.thumbbg-box article:hover .post-text {
    opacity: 1;
}


.post-header {
    margin-bottom: 3em;
}

.category-posts .post-header {
    margin-bottom: 1em;
}


.category-posts .entry-content {
    margin: 0 0 2.5em;
}

.category-names {
    position: relative;
    z-index: 500;
    margin-bottom: 1em;
}

.cat-name::after {
    content: "|";
    color: #666;
}

.cat-name:last-of-type::after {
    content: "";
}

.cat-name a {
    margin: 0 0.2em;
}

.cat-name:first-of-type a {
    margin-left: 0;
}

.cat-name:last-of-type a {
    margin-right: 0;
}



h2 {
    margin-bottom: 0.2em;
    font-size: 3.6em;
    line-height: 1.25em;
    letter-spacing: 0.02em;
    /*    text-align: center;*/
    transform: translateX(-0.05em);
}

.h2-container {
    position: relative;
}

.headline-front {
    position: absolute;
    left: 0;
    top: 0;

    color: red;
    /*deine Veränderung der Schrift!*/
    opacity: 0;
    transition: opacity 1s ease-out;
}

.h2-container:hover .headline-front {
    opacity: 1;
}


.category-posts h2 {
    font-size: 2.8em;
    margin-bottom: 0.2em;
}

/* Artikel-Titel in HOME */
.thumbbg-box h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 2em;
    margin: 1.4em 0 0.5em;
}

h4 {
    font-size: 1.2em;
    margin: 1em 0 0.6em;
}

ul {
    margin: 1.5em;
}

li {
    margin-bottom: 0.8em;
    padding-left: 1.5em;
}

a {
    color: #000;
    transition: all 0.4s ease-out;
}

/*h2 a:hover {
    background-color: #000;
    color: #fff;
}*/

/* Artikel-Titel-Link in HOME */
.thumbbg-box h2 a {
    display: block;
    padding: 0.6em 0;
    border: none;
    color: #666;
}

.thumbbg-box h2 a:hover {
    background-color: transparent;
    color: #333;
}

.show-more {
    color: #666;
    padding: 0.2em 0.5em;
}

.show-more:hover {
    color: #333;
}

.entry-meta {
    color: #666;
    font-size: 0.8em;
    letter-spacing: 0.05em;
}

.date::before {
    content: " am ";
}

p {
    max-width: 80ch;
    margin: 1.4em 0;
    font-size: 1.2em;
    line-height: 1.6em;
}

figure {
    margin: 2em 0 3em;
}

img {
    display: inline-block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.post-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0 10% 5em;
    font-family: 'Fira Sans', sans-serif;
    font-size: 0.8em;
}

.single-post .post-links {
    margin: 0 20% 5em;
}

.post-links a {
    display: block;
    padding: 0.5em;

    font-size: 2em;
    letter-spacing: 0.09em;
    white-space: nowrap;
}

.post-links a:hover {
    background-color: black;
    color: white;
}


/* FOOTER-Elemente */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

    padding: 1em 4%;
    padding-top: 2em;
    background-color: black;
}

.site-footer .menu li {
    margin-bottom: 0;
}

.footer-widgets {
    margin: 1em;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
}

.widget-title {
    margin: 2em 0 1em;
    font-size: 1.2em;
    text-transform: uppercase;
}

.footer-widgets p {
    margin: 0;
}

.footer-widgets a {
    font-size: 1em;
}

/* Anpassung Iframes-Breite und -Höhe im richtigen Verhältnise */
.is-type-video .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 54%;
    /* 56.25%=16:9 - 75%=4:3*/
    padding-top: 25px;
    height: 0;
    margin-bottom: 4em;
}

.is-type-video .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none !important;
}



/* MEDIA QUERIES */
@media(min-width:80rem) {
    .category-posts article {
        width: 60rem;
    }
}


@media(min-width:120rem) {

    .site-header {
        padding: 2.5rem calc((100% - 120rem)/2) 2.5rem;
    }

    .content-header {
        width: 120rem;
        margin: 0 auto;
    }

    .content-header .claim {
        font-size: 4em;
    }

    .breadcrumbs {
        padding: 0.4em 0.2em;
    }

    article,
    .category-posts article {
        width: 70rem;
    }

    .thumbbg-box article {
        flex-basis: calc(33.33% - 24px);
        margin: 12px;
    }

    .post-links,
    .single-post .post-links {
        width: 70rem;
        margin: 0 auto 5em;
        padding: 0 1em;
    }

    .site-footer {
        padding: 1em calc((100% - 120rem)/2);
    }
}



@media(hover:hover) and (min-width:64.011rem) {

    /* - - SUBMENU ON HOVER 
    derzeit teilweise noch doppelt über MODERNIZR gecheckt ... */

    .sub-menu {
        position: absolute;
        top: 1.6em;
        left: 0;
        height: 0;
        margin: 0;
        overflow: hidden;

        background-color: #fff;
        opacity: 0;
        -webkit-transition: opacity 0.4s ease-out;
        transition: opacity 0.4s ease-out;
    }

    .menu li:hover .sub-menu {
        height: auto;
        padding: 0.6em 0.6em 0.8em;
        opacity: 1;
    }


    .searchform input[type=text] {
        position: absolute;
        right: 0;
        top: 2.4em;
        transform-origin: right center;
        transform: scale(0, 1);
    }

    .searchform:hover input[type=text],
    .searchform input[type=text]:focus {
        transform: scale(1, 1);
    }

}


@media(hover:none) {

    /* Artikel in HOME */
    .thumbbg-box article {
        padding: 0.5em;
    }

    .thumbbg-box .post-text {
        background: rgba(255, 255, 255, 0.7);
        opacity: 1;
    }

    .thumbbg-box h2 a {
        color: #000;
    }

}


@media(hover:none) and (min-width:64.0111rem) {

    .sub-menu {
        position: absolute;
        top: 1.6em;
        left: 0;
        height: auto;
        margin: 0;
        background-color: white;
        overflow: hidden;
        opacity: 1;
    }

}


@media(max-width:64rem) {

    .site-header {
        flex-direction: column;
        justify-content: center;
    }

    .site-logo {
        margin: 0;
    }

    /* PLUS Suchfunktion: */
    .main-menu {
        flex-direction: column;
        justify-content: center;
    }

    .main-menu ul {
        flex-direction: column;
        justify-content: center;
    }

    .main-menu > div > ul {
        margin: 3em;
    }

    .main-menu li {
        margin-bottom: 0.8em;
        text-align: center;
    }

    .main-menu li::after {
        display: block;
        margin: 0.8em auto;
    }

    .main-menu a {
        font-size: 1.4em;
    }

    .main-menu .sub-menu li {
        margin-bottom: 0.3em;
        padding: 0;
    }

    .main-menu .sub-menu a {
        font-size: 1em;
    }

    .content-header {
        margin-top: 0em;
    }

    .content-header.thumb-header {
        min-height: 60vw;
    }

    .content-header h1 {
        flex-basis: 100%;
        font-size: 1.2em;
        white-space: normal;
    }

    article {
        width: 80%;
        margin: 4em auto 6em;
    }

    .category .category-posts article,
    .category .category-posts article:nth-of-type(even) {
        padding: 1em;
        flex-direction: column;
    }

    .thumbbg-box article {
        flex-basis: calc(50% - 2vw);
    }

    .category-posts:not(.thumbbg-box) .post-thumb {
        min-height: 36vh;
    }

    .category-posts .post-text {
        flex-basis: auto;
        padding: 1em 1em 3.5em;
    }

    .category-posts .post-text.no-thumb {
        flex-basis: auto;
        flex-grow: unset;
    }

    /* Artikel-Text in HOME */
    .category-posts.thumbbg-box .post-text.no-thumb {
        flex-grow: 1;
    }

    h2 {
        font-size: 2.4em;
    }

    h3 {
        font-size: 1.6em;
        margin: 1.2em 0 0.6em;
    }

    h4 {
        font-size: 1em;
        margin: 1.2em 0 0.6em;
    }

    .single-post .post-links {
        margin: 0 10% 5em;
    }


}


@media(max-width:44rem) {
    main {
        margin-bottom: 4em;
    }

    .content-header.thumb-header {
        height: 100vw;
    }

    .content-header .claim {
        font-size: 2em;
    }

    .breadcrumbs {
        display: none;
    }

    .single-post .content-header h1 {
        flex-direction: column;
        align-items: center;
    }

    .single-post-links {
        margin: 0.2em 0;
    }

    /* Artikel-Container in HOME */
    .thumbbg-box.post-container {
        margin: 4em 0;
    }

    article {
        width: 100%;
        margin: 0 auto 3em;
        padding: 1em;
    }

    .category-posts article {
        width: 96%;
        padding: 0.5em;
    }

    .thumbbg-box article {
        flex-grow: 1;
    }

    .single-post article {
        margin-top: 4em;
    }

    .category-posts .post-thumb {
        flex-basis: 300px;
    }

    .category-posts .post-text {
        padding: 1em 1em 3.5em;
    }

    h2,
    .category-posts h2 {
        font-size: 1.8em;
    }

    p {
        font-size: 1em;
    }

    .post-links,
    .site-footer {
        justify-content: center;
    }

    .post-links {
        margin: 0 2em 5em;
    }

    .post-links a {
        font-size: 1.6em;
    }

    .site-footer .menu {
        flex-direction: column;
        margin-top: 0;
        margin-bottom: 0;
    }

    .site-footer .menu li {
        flex-direction: column;
        margin-top: 0.6em;
        margin-bottom: 0.6em;
    }

    .footer-widgets a {
        font-size: 0.9em;
    }
}


@media(max-width:33rem) {

    .thumbbg-box article {
        flex-basis: 80%;
    }
}


@media(orientation:portrait) {

    .home .content-header.bg-header {
        background-image: url("/wp-content/themes/myBlog9.2/img/we_create.png");
        background-size: 100%, cover;
        background-position: center, center;
        background-color: black;
    }

    .category-posts:not(.thumbbg-box) .post-thumb {
        position: relative;
        flex-basis: 250px;
    }

    .single-post .content-header.bg-header {
        height: 40vh;
    }

}


.video-container {
    padding: 0;
    width: 100%;
    /* Let the container take full width */
    height: auto;
    /* Height adjusts to the video height */
    background-color: black;
}

video {
    width: 100%;
    /* Video fills the width of the parent */
    height: auto;
    /* The height is determined by the video's aspect ratio */
    object-fit: contain;
    /* Ensure the whole video is visible */
}
