/*
 Theme Name: Digedags
 Theme URI: https://www.digedags.de
 Description: GeneratePress child theme
 Author: Digedags
 Template: generatepress
 Version: 1.0
*/

/* SCHRIFTEN */
@font-face {
    font-display: swap;
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/oswald-v53-latin-300.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/oswald-v53-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/oswald-v53-latin-600.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/oswald-v53-latin-700.woff2') format('woff2');
}

/* ALLGEMEIN */
html, body {
    font-family: Arial, Helvetica, sans-serif;
}
:is(h1, h2, h3, h4, h5, h6) {
    font-family: 'Oswald';
    letter-spacing: 1px;
}

header.entry-header,
header.page-header {
    border-bottom: 1px dotted var(--accent);
    text-align: right;
    padding: 0 0 3px;
}
body.category header.entry-header {
    border-bottom: none;
    text-align: left;
}
header.entry-header h1,
header.page-header h1 {
    display: inline;
    border-bottom: 5px solid var(--accent);
    line-height: 1.5em;
}

.sidebar h3 {
    font-size: 24px;
}

/* HEADER */

/* MENÜ */
.main-navigation .main-nav>ul {
    gap: 10px;
}
.main-navigation .main-nav ul li a {
    font-family: 'Oswald';
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 45px;
    padding-left: 15px;
    padding-right: 15px;
}

.main-navigation ul ul {
    padding-top: 10px;
    box-shadow: none;
}
.main-navigation ul ul li {
    padding-bottom: 1px;
}    
.main-navigation .main-nav ul ul li a {
    text-transform: none;
    font-size: 1rem;
    padding: 5px 20px;
}

/* INHALT */
.one-container .site-content {
    padding-bottom: 80px;
}
.left-sidebar .site-content .content-area {
    width: 75%;
}
.is-left-sidebar,
.is-right-sidebar {
    width: 25%;
}

svg.shop-icon {
    width: 1.2em;
    height: 1.2em;
    color: var(--accent);
}
a:hover svg.shop-icon {
    color: var(--accent-2);
}

/* BEITRÄGE */
body.category .site-main article {
    border-bottom: 1px dotted #ccc;
    margin-bottom: 2.5em;
    padding-bottom: 3.5em !important;
}
body.category .site-main article:first-of-type {
    margin-top: 3em;
}
.site-main article .post-image {
    float: left;
    margin: 1em 1.5em 1em 0;
}
.site-main article .entry-summary {
    margin-top: 1em;
}
.site-main .cat-links {
    margin: 10px 0 0;
}
.site-main .post-navigation {
    margin: 20px 0 0;
}

/* TESTIMONIALS */
#testimonial-wrapper { 
    position: relative;
    margin: 100px 0 80px;
    margin-left: calc( -100vw / 2 + 100% / 2 );
    margin-right: calc( -100vw / 2 + 100% / 2 );
    max-width: 100vw;
    width: 100vw;
    background: #f4f4f4;
    min-height: 200px;
}
.testimonial {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.testimonial-img img {
    max-height: 120px;
    width: auto;
    border-bottom: 10px solid var(--accent);
}
.testimonial-inhalt {
    font-style: italic;
    font-size: 21px;
    line-height: 1.5em;
}
.testimonial-inhalt span p {
    font-weight: 600;
    margin-bottom: 5px;
    color: #161616;
}
.testimonial-inhalt p {
    color: #aeaeae;
    margin: 0;
}

/* SEITENLEISTE */
.sidebar.widget-area aside.widget {
    padding: 0;
}
.sidebar .wp-block-group__inner-container {
    background-color: rgb(246, 246, 246);
    padding: 30px;
}
.sidebar .wp-block-group .wp-block-image {
    margin-bottom: 1em;
}
.sidebar .wp-block-group p {
    font-size: 0.85rem;
}

/* FUßLEISTE */
#footer-widgets aside.widget:first-child {
    border-bottom: 1px solid var(--accent);
    top: 6px;
    padding: 0 0 9px;
    margin: 0 0 15px 40px;
}
#footer-widgets .wp-block-heading {
    display: inline;
    padding: 0 0 5px;
    border-bottom: 5px solid var(--accent);
}
#footer-widgets li {
    margin-bottom: 0;
}
#footer-widgets a {
    text-decoration: none;
    font-size: 0.9rem;
}
#footer-widgets a:hover {
    text-decoration: underline;
}

.inside-site-info {
    display: block;
    text-align: left;
}
.inside-site-info p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* PLUGINS - INDICATE EXTERNAL LINKS */
.extlink sup:after {
    top: 5px;
    left: 5px;
}
.extlink sup {
    position: absolute;
    top: 10px;
}

/* BLOCKS - CORE - IMAGE */
.wp-block-kadence-image .alignleft {
    margin-right: 35px;
    margin-bottom: 20px;
}
.wp-block-kadence-image .alignright {
    margin-left: 35px;
    margin-bottom: 20px;
}

/* BLOCKS - CORE - TABLE */
.wp-block-table table {
    border: none;
}
.wp-block-table thead {
    border-color: #ccc;
}
.wp-block-table th,
.wp-block-table td {
    border-color: #ccc;
    border-left: none;
    border-right: none;
}
.wp-block-table th {
    border-top: none;
}

/* BLOCKS - KADENCE - GALLERY */
body .kb-gallery-ul.kb-gallery-caption-style-cover-hover .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
    flex-direction: column;
    max-width: 100%;
}
body .wp-block-kadence-advancedgallery.main .kb-gallery-ul.kb-gallery-caption-style-cover-hover .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
    --contentWidth: 800px;
    padding: 2rem max(2rem, 50vw - var(--contentWidth) / 2);
}
.kadence-blocks-gallery-item__caption span {
    font-size: 1.4rem;
}
body .wp-block-kadence-advancedgallery.main .kadence-blocks-gallery-item__caption span {
    font-size: 2rem;
}