/*
	Theme Name: Bibeltag
	Theme URI: http://html5blank.com
	Description: HTML5 Blank WordPress Theme
	Version: 1.4.3
	Author: Todd Motto (@toddmotto)
	Author URI: http://toddmotto.com
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

:root {
    --hintergrundfarbe: #d94119;
    --hintergrundfarbe-transparent: rgba(217,65,25,.7);
    --hintergrundfarbe-hell: #fbeae6;
}

body {
    margin: 0;
    padding: 0;
    background-image: url(img/hintergrund.jpg);
    background-size: cover;
    font-family: 'Noto Sans';
}

.wrapper {
    width: 90%;
    margin-left: 5%;
    margin-top: 5%;
    position: relative;
}

header {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.datum {
    font-size: 46px;
    font-weight: bold;
    color: #fff;
}

main {
    color: #fff;
}

main h1, main h2, main h3, main h4, main p {
    font-family: 'Libre Caslon Text';
}

main h1 {
    font-size: 4em;
    font-weight: normal;
}

.wp-block-column:has(p), .wp-block-column:has(h1) {
    background: var(--hintergrundfarbe-transparent);
    padding: 0 40px 80px 40px;
    clip-path: shape(from 0 0, line to 100% 0, line to 100% 100%, curve to 0 100% with 50% 70%, close);
}

main a {
    color: #fff;
    text-decoration: none;
    padding-right: 24px;
    background-image: url(img/link.png);
    background-repeat: no-repeat;
    background-position: center right;
}

main a:hover{
    text-decoration: underline;
}

main .wp-block-buttons a {
	padding-right: auto;
	background: none;
}

/*------------------------------------*\
	Mobilmenü
\*------------------------------------*/

.navbar {
    position: absolute;
    left: 0;
    top: 0;
    /*top: 50px;
    left: 50px;*/
    z-index: 9999;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.menu-toggle-checkbox {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /*padding: 50px 50px;*/
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.hamburger-box {
    width: 28px;
    height: 20px;
    display: inline-block;
    position: relative;
    background: var(--hintergrundfarbe);
    padding: 15px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: "";
    top: -8px;
    left: 0;
}

.hamburger-inner::after {
    content: "";
    top: 8px;
    left: 0;
}

.menu-toggle-checkbox:checked + .menu-toggle .hamburger-inner {
    background-color: transparent;
}

.menu-toggle-checkbox:checked + .menu-toggle .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
    background-color: #fff;
}

.menu-toggle-checkbox:checked + .menu-toggle .hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: #fff;
}

.nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    background-color: #fff;
    list-style: none;
}

.menu-toggle-checkbox:checked ~ ul,
.menu-toggle-checkbox:checked ~ div ul,
.menu-toggle-checkbox:checked ~ .menu {
    display: flex;
}

.nav ul li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    padding: 0 30px;
}

.nav ul li:first-child {
    border-top: 1px solid #f0f0f0;
}

.nav ul li a {
    display: block;
    padding: 14px 5%;
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.nav ul li:not(:has(a)) {
    padding: 14px 5%;
    color: #5b6a0d;
    font-weight: 600;
}

.nav ul li:has(a)::after {
    display: none;
}

.nav ul li a:hover,
.nav ul li:has(a):hover {
    background-color: var(--hintergrundfarbe-hell);
}

.nav ul li a:hover {
    color: var(--hintergrundfarbe);
}

.nav ul ul {
    display: flex;
    position: relative;
    box-shadow: none;
}

.nav ul ul li a {
    padding: 14px 5%;
    margin-left: 20px;
}

.current-menu-item {
    background-color: var(--hintergrundfarbe);
}

.current-menu-item a {
    color: var(--hintergrundfarbe) !important;
    font-weight: 600;
}

.current-menu-item::after {
    display: none !important;
}

.nav .home {
    background-position: 5% center;
    width: auto;
    min-height: 24px;
    text-indent: 0;
    background: none;
}

/*------------------------------------*\
	BUCH
\*------------------------------------*/

.wowbook-controls {
    background: var(--hintergrundfarbe) !important;
    background-repeat: repeat-x;
    color: white;
    border-radius: 5px !important;
}

.wowbook-toc {
    background: var(--hintergrundfarbe) !important;
    color: #fff !important;
    text-align: left;
}

.wowbook-toc a:hover {
    background: #fff !important;
    color: var(--hintergrundfarbe) !important;
}

.wowbook-control-fullscreen {
    width: 100px !important;
}

.wowbook-control-fullscreen i::after {
    content: " Vollbild";
    font-size: 16px;
    position: relative;
    top: -4px;
}

.wowbook-fontawesome .wowbook-control-fullscreen i::before {
    content: "\e989" !important;
}

.book_container {
    /*margin-bottom: 200px;*/
}

/*.book-container {
    width: 100%;
    max-width: 100%;           
    aspect-ratio: 297 / 210;   
    height: auto;               
    margin: 0 auto;
}*/

/*------------------------------------*\
	THEME
\*------------------------------------*/

.post-edit-link {
    background: var(--hintergrundfarbe);
    box-shadow: 5px 5px 10px rgba(0,0,0,.3);
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
}

.post-edit-link:hover {
    text-decoration: underline;
}

/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

/* noto-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/noto-sans-v42-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/noto-sans-v42-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* libre-caslon-text-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Libre Caslon Text';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/libre-caslon-text-v5-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* libre-caslon-text-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Libre Caslon Text';
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/libre-caslon-text-v5-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (max-width:700px) {

    body {
        height: 100vh;
        overflow: hidden;
    }

    .navbar {
        position: relative;
        z-index: 9999;
    }

    .datum {
        font-size: 30px;
    }

    main h1 {
        font-size: 28px;
    }

    main p.has-medium-font-size {
        font-size: 16px !important;
    }

    .wp-block-column:has(p), .wp-block-column:has(h1) {
        background: var(--hintergrundfarbe-transparent);
        padding: 0 20px 40px 20px;
        clip-path: shape(from 0 0, line to 100% 0, line to 100% 100%, curve to 0 100% with 50% 80%, close);
    }

    .logo {
        position: absolute;
        max-width: 20%;
        top: 0;
        right: 0;
    }

    header {
        justify-content: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .nav ul li {
        width: auto;
    }

    .book_container {
        margin-top: 100px;
    }
}