/*
 Theme Name:   GeneratePress Child Theme
 Theme URI:    https://wp-wartung24.de
 Description:  Child Theme von GeneratePress
 Author:       Marc Nilius
 Author URI:   https://wp-wartung24.de
 Template:     generatepress
 Version:      0.1
 Textdomain:   tle
*/

/* Custom Gutenberg-Colors: */
.has-tle-gray-color {color: #efefef;}
.has-tle-gray-background-color {background-color: #efefef;}

.has-tle-gold-color {color: #c4a25f;}
.has-tle-gold-background-color {background-color: #c4a25f;}

.has-white-color {color: #ffffff;}
.has-white-background-color {background-color: #ffffff;}

.has-black-color {color: #000000;}
.has-black-background-color {background-color: #000000;}


/* Blocksatz */
p {
	/*text-align: justify !important;*/
}

/* Separator (Widget und Gutenbergblock) */
.wp-block-separator,
.tle-separator {
    height: 3px !important;
    background-color: transparent !important;
    border-top: 1px dashed #dadada !important;
    border-bottom: 1px dashed #dadada !important;
}

/* Featured Image auf normalen Seiten */
.featured-image+#page #main, 
.featured-image+#page .sidebar>* {
    margin-top: 0px !important;
}

.featured-image img {
    height: 300px;
    width: 100%;
	object-fit: cover;
}

/* Zitate */
blockquote.wp-block-quote {
    border-left: none !important;
    background: #0000000d;
    padding: 20px 20px 20px 70px !important;
}

blockquote.wp-block-quote p {
    font-size: 20px !important;
    color: #000000;
    line-height: 1.66em !important;
    font-style: normal;
}

blockquote.wp-block-quote p:before {
    content: "“";
    position: absolute;
    top: 36px;
    left: 16px;
    display: block;
    color: rgba(0,0,0,.1);
    font-size: 96px!important;
	font-family: "Tinos", serif;
}

/* Menü */

#primary-menu>ul>li>a {
	padding: 0px 15px;
}
#primary-menu>ul>li:last-child>a {
    padding-right: 0px;
}

/* Footer */
div#footer-widgets {
    border-top: 8px solid #c4a25f;
    padding: 30px 0px;
}

.copyright-bar {
    text-align: left;
}

div#footer-widgets .menu {
    display: flex;
    justify-content: center;
}

div#footer-widgets .menu li {
    padding: 0px 10px;
}

div#footer-widgets .menu li a {
    text-transform: uppercase;
}

/* Block - Gruppen */
.wp-block-group__inner-container {
    padding: 0px 40px !important;
}

/* Top-Bar */
.top-bar a {
    font-size: 18px;
    padding: 5px 0px;
}

.top-bar .tlesearch a {
    background-color: #901808;
    padding: 5px 10px;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 17px;
}

.top-bar .tlesearch a:hover {
    background-color: #901808d0;
}

.top-bar>div {
    padding: 5px;
}

.top-bar li {
    margin: 0px !important;
}

.top-bar li:after {
    content: "|";
    font-size: 17px;
    margin: 0px 8px 0px 9px;
}

.top-bar li:last-child:after {
    display: none;
}

.top-bar .textwidget p {
    margin-top: 3px !important;
}

/* Logo */
img.header-image {
    margin-top: 9px;
}

/* Sub-Menü */
.main-navigation .sub-menu a {
    text-transform: none;
    padding: 10px 20px !important;
    font-size: 15px !important;
    letter-spacing: 1px;
}

ul.sub-menu {
    padding: 10px 0px;
    margin-top: -10px;
    margin-left: 20px;
}

ul.sub-menu ul.sub-menu {
    margin-top: 0px;
    margin-left: 0px;
}

/* Sticky Menü */
nav#sticky-navigation {
    border-top: 3px #c4a25f solid;
}

.sticky-navigation-logo img {
    padding: 5px 0px;
}

/* H2 auf Kontakt, Bildnachweise, Impressum und Datenschutz nicht bold */
#post-7126 h2,
#post-7111 h2,
#post-5331 h2,
#post-7118 h2,
#post-15465 h2,
#post-15508 h2,
#post-15561 h2,
#post-15411 h2 {
	font-weight: 300;
}

/* Startseite */
body.home main#main {
    margin-top: 0px;
}

body.home .inside-article {
    padding-top: 0px !important;
}

body.home figcaption {
    margin-top: -8px;
    padding: 5px 10px 5px 10px;
    color: white;
    font-size: 16px;
    background-color: #000;
	text-align: center;
}

div.home-header {
    background-image: url(https://www.tax-legal-excellence.com/wp-content/uploads/2019/06/mosaik-42stk-bearbeited-20190617.jpg);
    height: 100%;
    background-position: center center;
    background-size: contain;
}

.home-header .wp-block-group__inner-container {
    background-color: rgb(0 0 0 / 50%);
    margin: 0px !important;
    max-width: none;
    width: 100%;
}

.home-header .wp-block-group__inner-container {
	position: relative;
}

.home-header p.has-text-align-center {
    text-align: center !important;
}

.home-header p {
    font-size: 42px;
    margin-bottom: 0px;
    line-height: 45px;
}

.home-header .wp-block-image {
    margin-top: 40px;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.home-header .wp-block-buttons .wp-block-button {
	width: auto !important;
}

.home-header a.wp-block-button__link {
    background-color: #565656d0 !important;
    border-radius: 0px;
    color: white !important;
}

.home-header a.wp-block-button__link:hover {
    background-color: #901808d0 !important;
}

div.home-header>div {
    padding: 120px 0px !important;
}

body.home .wp-block-group__inner-container {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

body.home .entry-content>div:not(.home-header) a.wp-block-button__link {
    padding: 2px !important;
    font-size: 16px !important;
    font-weight: 600;
    letter-spacing: 2px;
	border: 1px solid #c4a25f;
    text-align: center;
    width: 100%;
}

body.home .entry-content>div:not(.home-header) a.wp-block-button__link:hover {
	background-color: #c4a25f;
	color: white;
}

body.home .wp-block-button {
    width: 100%;
}

.home-header .wp-block-buttons.is-content-justification-center {
	display: flex;
	justify-content: center;
}

.wp-block-column.tle-member-sign-home {
    display: flex;
    justify-content: center;
}

/* Circles */
.tle-daily-program .tle-daily-program-heading {
    background-color: #c4a25f;
    color: white;
}

.tle-daily-program ul {
    list-style: none;
    margin: 0px !important;
}

.tle-daily-program .tle-daily-program-heading h2,.tle-daily-program h3 {
    margin-bottom: 0px;
}

.tle-daily-program .tle-daily-program-heading, .tle-daily-program-day-date {
    padding: 10px 15px;
}

.tle-daily-program ul.tle-daily-program-day-program {}

.tle-daily-program .tle-daily-program-day-date {
    background-color: black;
    color: #c4a25f;
}

.tle-daily-program .tle-daily-program-day-program>li p {
	word-break: break-word;
}

.tle-daily-program .tle-daily-program-day-program>li {
    display: flex;
    justify-content: space-between;
    padding: 28px 15px;
}

.tle-daily-program .tle-daily-program-time {flex-grow: 0;flex-shrink: 0;width: 15%;}

.tle-daily-program .tle-daily-program-content {flex-grow: 1;flex-shrink: 0;padding-left: 5%;}

.tle-daily-program .tle-daily-program-image {flex-grow: 0;flex-shrink: 0;width: 50%;padding-left: 5%;}

.tle-daily-program .tle-daily-program-with-image .tle-daily-program-content {
    width: 25%;
}

.tle-daily-program .tle-daily-program-heading h2 {
    font-size: 25px;
}

.tle-daily-program .tle-daily-program-day-program>li:nth-child(even) {
    background: #efefef;
}

.tle-daily-program h4 {
    font-weight: 600;
}

.tle-daily-program .tle-daily-program-time {
    font-weight: 600;
}

.tle-daily-program .tle-daily-program-content {
    max-width: 75%;
}

/* CSS Selection Color */
::selection {
	background: #c4a25f; color: #fff;
}

/* 404-Page */
div#primary.tle-404 {
    margin: 30px;
    padding: 30px;
    background-color: white;
}
.search-form.tle-search-form label,
.search-form.tle-search-form input.search-field {
    width: 100%;
}

/* Search Page */
.tle-search div#content {
    margin-top: 30px !important;
}

.tle-search form.search-form.tle-search-form {
	margin-top: 15px;
}

/* Mobiloptimierung */
.inside-header.grid-container.grid-parent, 
.top-bar {
    padding: 0px 15px;
}

#sticky-navigation div#primary-menu {
    margin-right: 15px;
}


	
@media screen and (min-width: 769px) {
	.main-nav>ul>li>a>span.dropdown-menu-toggle:before,
	.main-nav>ul>li>a>span.dropdown-menu-toggle {
		display: none !important;
	}
	span.dropdown-menu-toggle:before,
	span.dropdown-menu-toggle {
		padding-right: 0px !important;
	}
}


@media screen and (max-width: 886px) {
   .inside-header.grid-container.grid-parent {
        display: flex;
        flex-direction: column;
        align-items: center;
    } 
}

@media screen and (max-width: 768px) {
	
	.main-nav>ul>li>ul>li>ul>li {
		padding: 0px 20px;
		width: calc(100% - 40px) !important;
	}
	
	.tle-content .tle-body>div#content {
		margin: 0px !important;
	}

	.tle-content .tle-body>div#content>*:not(.tle-author-banner) {
		padding: 0px 30px;
	}

	.sidebar {
		display: none;
	}
	
	figure.alignright.size-full {
		margin-left: auto;
		margin-right: auto;
		float: none;
	}
	
   .inside-top-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    } 
	.top-bar .textwidget p {
		text-align: center !important;
	}
	.inside-footer-widgets .menu {
		flex-direction: column;
		align-items: center;
	}
	.category-block {
		margin-bottom: 0px !important;
	}
	span.tle-event-needle {
		display: none;
	}

	span.tle-event-arrow {
		display: none;
	}
	
	article#post-12614>div.inside-article>div.entry-content>div:first-child>.wp-block-column:first-child
	article#post-15635>div.inside-article>div.entry-content>div:first-child>.wp-block-column:first-child, {
		flex-basis: 100% !important;
	}

	div.tle-content .tle-body {
		display: contents;
	}

	.tle-header-title-container {
		flex-direction: column;
		padding: 30px;
	}

	.tle-header-title:after,
	.tle-header-subtitle:after	{
		display: none;
	}
	.inside-header.grid-container.grid-parent {
        display: flex;
        flex-direction: row;
		justify-content: space-between;
    } 
	button.menu-toggle span {
		display: none;
	}
	button.menu-toggle {
		color: #c4a25f !important;
		transform: scale(2);
	}
	.wp-block-column {
		flex-basis: 100%!important;
	}
	.wp-block-column:nth-child(2n) {
		margin-left: 0px;
	}
	.tle-daily-program-image {
		display: none;
	}
	.tle-change-order-mobile>div:last-child {
		order: -1;
	}

	.wp-block-column img {
		width: 100%;
	}
	.tle-dont-show-mobile {
		display: none;
	}
}
@media screen and (max-width: 599px) {
	body.parent-pageid-8851 .wp-block-column:first-child,
	body.parent-pageid-8870 .wp-block-column:first-child,
	body.page-id-7761 .wp-block-column:first-child,
	body.parent-pageid-15510 .wp-block-column:first-child,
	body.parent-pageid-15413 .wp-block-column:first-child,
	body.page-id-15570 .wp-block-column:first-child	{
		order: 2;
	}
	
	.tle-archive li.tle-post>*:not(.tle-author-banner) {
		margin: 0px;
	}
}

@media screen and (max-width: 399px) {
	.tle-event .tle-event-title {
		text-align: center;
		padding-top: 10px;
		padding-top: 10px;
	}

	.lounge-events>ul .tle-event span:not([class]) {
		display: none;
	}

	.tle-event {
		flex-direction: column;
		align-items: center;
		padding: 10px 0px !important;
	}
	.site-logo.mobile-header-logo {
		margin-right: 0px;
		float: left;
		width: 66%;
	}
}

#mobile-menu.main-nav>ul>li.menu-item>a {
    line-height: 50px !important;
}

#mobile-menu.main-nav>ul>li.menu-item {
    border-top: 1px solid #dadada;
}

#mobile-menu.main-nav ul.sub-menu.toggled-on {
    margin: 0px;
    padding: 0px;
    background: transparent;
}

#mobile-menu.main-nav ul.sub-menu.toggled-on a {
    color: white !important;
}

/* RELATED POSTS */
.tle-related-posts h2 {
    font-size: 20px !important;
}

.tle-related-posts .related-posts-container {
    display: flex;
    justify-content: space-between;
}

.tle-related-posts .column {
    width: 32%;
    border: 1px solid black;
    margin-bottom: 40px;
    background-color: #efefef;
	display: flex;
}

.tle-related-posts .column>a {
    display: flex;
    flex-direction: column;
}

.tle-related-posts h3 {
    font-size: 17px !important;
	margin-bottom: 0px;
	color: black;
	word-break: break-word;
}

.tle-related-posts .column>a:hover h3 {
    color: #c4a25f;
}

.tle-related-posts .text-container {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.tle-related-posts .image-container img {
	vertical-align: top;
	max-width: 100% !important;
}

@media screen and (max-width: 720px) { 
    .tle-related-posts h3 {
        font-size: 20px !important;
    }
    
    .tle-related-posts .column,
    .tle-related-posts a {
        width: 100%;
    }

    .tle-related-posts .image-container {
        width: 100% !important;
        display: flex;
        justify-content: center;
        background: black !important;
    }

    .tle-related-posts img {
        max-height: 200px;
        width: auto
    }

    .tle-related-posts .related-posts-container {
        flex-wrap: wrap;
    }
}

/* TLE-Home Images Center */
.wp-block-column.tle-home-image-column {
    display: flex;
    align-items: center;
}

.wp-block-column.tle-home-image-column>figure {
    margin: 0px !important;
}

/* SEARCH BLOCK */
form.wp-block-search__button-inside.wp-block-search__icon-button.wp-block-search label.wp-block-search__label {
    font-weight: 600;
}

form.wp-block-search__button-inside.wp-block-search__icon-button.wp-block-search input {
    font-size: 14px;
	padding-left: 10px !important;
}

form.wp-block-search__button-inside.wp-block-search__icon-button.wp-block-search label+div {
    background: #fdfdfd;
    height: 44px;
    border: 2px solid #dedede !important;
    margin-top: 5px;
}

form.wp-block-search__button-inside.wp-block-search__icon-button.wp-block-search button.wp-block-search__button.has-icon {
    background: none;
    border: none;
    transform: scaleX(-1);
}

form.wp-block-search__button-inside.wp-block-search__icon-button.wp-block-search .wp-block-search__button svg {
	fill: #7e7e7e;
}

form.wp-block-search__button-inside.wp-block-search__icon-button.wp-block-search button.wp-block-search__button:hover svg {
    fill: #c4a25f;
}