/* @override
	http://lauf.3x60.net/wp-content/themes/lauf-evangelisch/style.css?ver=5.1.1 
*/
/*
 Theme Name:   Evangelische Kirchengemeinde Lauf
 Description:  Theme für lauf-evangelisch.de, basiert auf Atomic Blocks
 Author:       Tilman Zitzmann
 Author URI:   http://tilman.me
 Template:     atomic-blocks
 Version:      1.0
 Text Domain:  lauf-evangelisch
*/

body,
button {
	font-size: 20;
	line-height: 1.4;
}

a {
	color: #a4145a;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}



/* Search drawer */



/* Header ------------------------ */
header#masthead.site-header {
	background-color: transparent;
}

.site-identity {
	width: 100%;
	padding: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

/* Merkwürdige Einrückung der Flex-Elemente korrigieren: */
.site-identity.clear:before,
.site-identity.clear:after {
	content: none;
}

.site-identity .top-navigation-right {
	float: none;
	max-width: 80%;
}

.site-title-wrap {
	max-width: 20%;
	position: static;
}



/* Menu Desktop ------------------------ */

@media(min-width: 1000px) {

	nav ul.menu > li > ul.sub-menu {
		/*Nur für mich zum Coden*/
		/*left: 50%;*/
		transform: translateX(-50%);
	}

	.main-navigation ul li {
		padding: 0 10px;
	}

	.main-navigation ul li a {
		color: #a4145a;
		margin: 0;
	}

	ul.menu {
		font-size: 18px;
	}

	ul.menu li a[href="#"] {
		color: inherit;
		cursor: default;
	}

	.main-navigation ul li.current-menu-item a,
	.main-navigation ul li.current-page-item a {}

	nav.main-navigation ul.sub-menu,
	nav.main-navigation .children {
		width: auto;
	}

	.main-navigation {
		font-size: 1em;
	}

	.main-navigation ul.menu > li.focus > .sub-menu,
	.main-navigation ul.menu > li:hover > .sub-menu {
		left: 50%;
		transform: translateX(-50%);
	}

	.main-navigation .sub-menu,
	.main-navigation .children {
		text-align: left;
	}

	.main-navigation li.search-toggle {
		margin-right: 18px;
	}

	.search-drawer .searchsubmit {
		margin-right: 0;
	}
}



/* Menu Mobile ------------------------ */

@media(max-width: 1000px) {

	.site-identity {
		display: none;
	}

	.mobile-navigation {
		background-color: #a4145a;
		display: flex;
		font-size: 22px;
		padding: 0;
	}
	.mobile-navigation .mobile-logo {
		flex: 0 0 300px;
		padding: 0;
	}
	.mobile-navigation .mobile-logo a {
		display: block;
		color: white;
		padding: 4px 0 0px 6px;
	}
	.mobile-navigation button.button-toggle {
		flex: 1 1 100%;
		font-size: inherit;
		text-align: right;
		padding: 0px 20px;
	}
	
	nav ul.menu > li.mega-menu > ul > li.mega-menu-spalte > a,
	nav ul.menu > li.mega-menu > ul > li.mega-menu-spalte > button {
		display: none;
	}

	.drawer .drawer-navigation .sub-menu li.mega-menu-spalte > ul > li:first-child {
		border-top: none;
	}

	nav ul.menu > li.mega-menu > ul > li.mega-menu-spalte > ul {
		display: block;
	}
}

/* Menu Mobile Smartphone */
@media(max-width: 500px) {
	.mobile-navigation .mobile-logo {
		flex: 0 0 200px;
	}
}


/* Mega Menu Desktop ------------------------ */

@media(min-width: 1000px) {

	nav ul.menu > li > ul a {
		width: 240px;
		padding: 1em 1.2em;
	}

	nav ul.menu > li.mega-menu > ul {
		width: auto;
	}

	nav ul.menu > li.mega-menu ul,
	nav ul.menu > li.mega-menu ul li {
		background: none;
	}

	nav ul.menu > li.mega-menu > ul {
		background: rgba(0, 0, 0, 0.85);
		border-radius: 4px;
	}

	nav ul.menu > li.mega-menu > .sub-menu {
		display: flex;
		flex-direction: row;
	}

	nav ul.menu > li.mega-menu > ul > li > ul > li > a {
		font-weight: bold;
		color: white;
	}

	nav ul.menu > li.mega-menu > ul > li > ul,
	nav ul.menu > li.mega-menu > ul > li > ul > li > ul {
		left: 0;
		width: 100%;
		position: static;
	}

	nav ul.menu > li.mega-menu > ul > li > ul > li > ul a {
		padding-left: 2.5em;
	}

	nav ul.menu > li.mega-menu > ul > li > a:after,
	nav ul.menu > li.mega-menu > ul > li > ul > li > a:after {
		content: "";
	}

	nav ul.menu > li.mega-menu > ul > li {
		/*border-right: 1px solid rgba(255, 255, 255, 0.2);*/
	}

	nav ul.menu > li.mega-menu ul li a {
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}

	nav ul.menu > li.mega-menu > ul > li.mega-menu-spalte > a {
		display: none;
	}
}


/* Slick Slider ------------------------ */

.elementor-slides .swiper-slide-contents {
	width: 20em;
	/*	background-color: rgba(255, 255, 255, 0.92);*/
	padding: 30px;
	/*	color: #272c30;*/
}

.elementor-slides .swiper-slide-inner {
	padding: 30px;
}

.elementor-slides .swiper-slide-inner .elementor-slide-description:not(:last-child) {
	margin-bottom: 20px;
}

.elementor-slides .swiper-slide-inner .elementor-slide-heading:not(:last-child) {
	margin-bottom: 5px;
}

.elementor-slides .swiper-slide-inner .elementor-slide-button {
	/*	border: 2px solid #272c30;*/
}

.elementor-slides .elementor-background-overlay {
	background: linear-gradient(15deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%);
}

.elementor-slides .swiper-slide-inner {
	align-items: flex-end;
}

.elementor-slides .swiper-slide-inner .swiper-slide-contents {
	text-shadow: 0 0 6px #000;
}

.elementor-slides .swiper-slide-inner .elementor-slide-heading {
	/*	font-size: 28px;*/
	line-height: 1.3;
}



/* Elementor Posts Listing ------------------------ */

.elementor-posts-container {
	grid-column-gap: 36px;
	grid-row-gap: 36px;
}

.elementor-posts .elementor-post__title {
	font-size: 24px;
}

.elementor-posts .elementor-post__meta-data {
	margin-top: 0.5em;
}

.elementor-posts .elementor-post__excerpt p {
	font-size: 16px;
	color: #272c30;
}



/* Content ------------------------ */

.entry-content {
	line-height: 1.6;
}

.entry-content p a {
	color: #a4145a;
	text-decoration: none;
	box-shadow: none;
}

.entry-content li {
	margin-bottom: 0em;
}

.entry-content figcaption {
	margin-top: 0;
}

.wp-block-image .aligncenter>figcaption,
.wp-block-image .alignleft>figcaption,
.wp-block-image .alignright>figcaption {
	/* bugfix: In atomic blocks theme display: table-caption macht Bildunterzeilen zu schmal */
    display: block;
}

.entry-content ab-button {
	background-color: #a4145a;
}

.entry-content .has-accent-box-color-background-color { background-color: #efe9ea; }
.entry-content .has-accent-color-background-color { background-color: #a4145a; }
.entry-content .has-light-gray-background-color { background-color: #efefef; }
.entry-content .has-gray-background-color { background-color: #999; }
.entry-content .has-dark-gray-background-color { background-color: #333; }

.entry-content .has-accent-box-color-color { color: #efe9ea; }
.entry-content .has-accent-color-color { color: #a4145a; }
.entry-content .has-light-gray-color { color: #efefef; }
.entry-content .has-gray-color { color: #999; }
.entry-content .has-dark-gray-color { color: #333; }



/* Zitate */

blockquote.wp-block-quote p {
	font-family: Georgia;
	font-weight: normal;
	font-style: italic;
	padding-bottom: 0;
	margin-bottom: 0;
}

blockquote.wp-block-quote cite {
	margin-top: 0;
}

blockquote.wp-block-quote cite strong:before {
	content: "— ";
}

blockquote.wp-block-quote cite strong {
	font-family: inherit;
	font-weight: normal;
	font-style: normal;
	text-transform: uppercase;
	font-size: 0.7em;
}



/* Footer ------------------------ */

footer#colophon.site-footer div.container div.footer-bottom {
	display: none;
}

.site-footer a {
	color: #a4145a;
}

/* et-shortcodes ------------------------ */

/* Termine Tabelle, erzeugt mit [et-liste] */

.et-termine-tabelle {
	border-collapse: collapse;
}

.et-termine-tabelle thead tr {
	border-bottom: 1px solid #999;
	background: white;
}

.et-termine-tabelle tr {
	cursor: pointer;
	font-size: 0.85em;
}

.et-termine-tabelle tbody tr:hover {
	background-color: #ddd;
}

.et-termine-tabelle tr td,
#content .et-termine-tabelle tr th {
	padding: 0.4em 0.7em;
}

.et-termine-tabelle tr td a {
	white-space: nowrap;
}

.et-termine-tabelle tr td._event_TITLE {
	font-weight: bold;
}

.et-termine-tabelle tr td.DATUM2 {
	width: 13.5em;
}

.et-termine-tabelle tr td._place_NAME {
	width: 20em;
}

table.et-termine-tabelle {
	margin: 0;
}

.et-mehr-link {
	margin: 0.2em 0 2em 0;
	text-align: right;
}

.et-mehr-link a {
	font-size: 14px;
	color: #999;
}

.et-mehr-link a::after {
	font-family: FontAwesome;
	content: " \f105";
}

/* Evangelische Termine Tabelle auf kleinen Displays stapeln */

@media(max-width: 600px) {
	.et-termine-tabelle tr td:not(:first-child) {
		display: block;
		border-bottom: none;
		padding-top: 0;
	}

	.et-termine-tabelle tr td:not(:last-child) {
		display: block;
		border-bottom: none;
		padding-bottom: 0;
	}
}

/* Termine Tabelle in Kachel-Ansicht */

table.et-termine-kacheln > tbody {
	display: flex;
	flex-wrap: wrap;
}

table.et-termine-kacheln > tbody > tr {
	flex: 0 1 33.3%;
	display: flex;
	background-color: transparent;
}

table.et-termine-kacheln > tbody > tr > td.et-kachelbild {
	flex: 0 0 120px;
	padding: 1em 0 1em 1em;
}

table.et-termine-kacheln > tbody > tr > td {
	flex: 1 1 0;
	padding: 1em;
}

table.et-termine-kacheln table {
	margin: 0;
}

table.et-termine-kacheln tr td,
table.et-termine-kacheln tr th {
	display: block;
	border-bottom: none;
	padding: 0;
	/* padding-right: 1em; */
	/* margin-bottom: 0.5em; */
}

table.et-termine-tabelle.et-termine-kacheln tr td.DATUM2,
table.et-termine-tabelle.et-termine-kacheln tr td._place_NAME {
	width: auto;
}

table.et-termine-kacheln tr td._event_LONG_DESCRIPTION {
	/* Lange Beschreibung maximal 3 Zeilen anzeigen, mit ellipse */
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	height: 74px;
}

@media(max-width: 1139px) {
	table.et-termine-kacheln > tbody > tr {
		flex: 0 1 50%;
	}
}

@media(max-width: 768px) {
	table.et-termine-kacheln > tbody > tr {
		flex: 0 1 100%;
	}
	table.et-termine-kacheln > tbody > tr > td.et-kachelbild {
		flex: 0 0 20%;
	}
}

@media (max-width: 600px) {
	table.et-termine-tabelle.et-termine-kacheln > tbody > tr > td:not(:first-child) {
		padding-top: 1em;
	}
}

/* Fenster Termin-Details */

#et-backdrop {
	position: fixed;
	margin: 0;
	padding: 0;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 101;
	/* Header#masthead von Atomic Blocks liegt auf z-index: 100 */
	background-color: rgba(0, 0, 0, 0.2);
	display: none;
}

.termin-detail {
	display: none;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	color: #272c30;
	padding: 40px;
	z-index: 102;
	width: 30em;
	max-width: 90vw;
	max-height: 80vh;
	overflow: auto;
	border-radius: 3px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.termin-detail button.close {
	font-size: 40px;
	padding: 0 0 2px 0;
	line-height: 0.1;
	width: 50px;
	height: 50px;
	border-radius: 3px;
	position: absolute;
	right: 10px;
	top: 10px;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 1;
}

.termin-detail figure {
	display: flex;
	align-items: flex-end;
	position: relative;
	top: -40px;
	margin-bottom: -0.5em;
}

.termin-detail figure img {
	margin-right: 1em;
	margin-bottom: 0.15em;
}

.termin-detail figure figcaption {
	font-size: 0.75em;
	line-height: 1.2;
}

.termin-detail figure.ort-bild img {
	max-width: 200px;
	max-height: 200px;
}

.termin-detail h2 {
	margin: 0;
	font-size: 36px;
}

.termin-detail h3 {
	margin: 0;
	font-size: 1em;
}

.termin-detail time {
	display: block;
	margin-top: 1.5em;
}

.termin-detail .litbez {
	font-weight: bold;
}

.termin-detail .litbez::after {
	content: " – ";
}

.termin-detail address {
	margin: 0;
}

.termin-detail address .adresse {
	display: inline-block;
}

.termin-detail address a {
	/*	color: #272c30;*/
}

.termin-detail .link {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.termin-detail .short-desc {
	margin-top: 1.5em;
	font-size: 1em;
}

.termin-detail .long-desc {
	margin-top: 1.5em;
	font-size: 0.8em;
}

.termin-detail .short-desc + .long-desc {
	margin-top: 0;
}

.termin-detail .person {
	margin-top: 1.5em;
}

.termin-detail .person a {
	display: inline-block;
}

/* Dev-Mode! */
/*
.termin-detail:nth-of-type(1) { display: block; }
#et-backdrop { display: block; }
*/
