/*
Theme Name: Themify Ultra Child
Template: themify-ultra
Version: 1.0.8
Description: Hält die Darstellung von Ultra 1.4.6 nach dem Update auf 8.3.9.
*/

/* Ultra 1.4.6: größere Grundschrift, weitere Zeilen und mehr Absatzabstand.
   Die Schriftfamilie bleibt der Customizer-Wert Fabrikat. */
body {
	font-size: 1.05em;
	line-height: 1.85em;
}

p {
	margin: 0;
	padding: 0 0 2.3em;
}

ul,
ol {
	margin: 0 0 1.4em 1.6em;
	padding: 0;
}

li {
	margin: 0 0 1em;
	padding: 0;
}

#main-nav li,
#footer li,
.footer-widgets li {
	margin: 0;
}

#footer {
	font-size: 0.95em;
	line-height: 1.85em;
}

#footerwrap {
	background-color: #fafafa;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding-top: 54px;
}

#footer .widget {
	margin: 2.5em 0 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: normal;
	line-height: 1.4em;
}

/* Ultra 1.4.6 setzte Überschriften größer, in Versalien und mit weiter Laufweite.
   Die Schrift selbst kommt weiter aus dem Customizer (Fabrikat). */
h1,
.page-title {
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.page-title {
	font-size: 2.8em;
	line-height: 1.1;
	margin: 0 0 0.938em;
}

h2 {
	font-size: 2.9em;
	letter-spacing: -0.035em;
	margin: 0 0 0.8em;
}

h3 {
	font-size: 1.6em;
	line-height: 1.6em;
	margin: 0 0 0.8em;
}

.module-pro-slider .bsp-slide-post-title {
	font-size: 2.8em;
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.11em;
	text-transform: uppercase;
}

.module-pro-slider .bsp-slide-button {
	border-radius: 3px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

@media (max-width: 1000px) {
	.module-pro-slider .bsp-slide-post-title {
		font-size: 2em;
	}
}

@media (max-width: 780px) {
	.module-pro-slider .bsp-slide-post-title {
		font-size: 3vw !important;
	}

	.module-pro-slider .bsp-slide-excerpt,
	.module-pro-slider .bsp-slide-button {
		font-size: 2vw !important;
	}
}

h4 {
	font-size: 1.3em;
	letter-spacing: 0.1em;
	line-height: 1.6em;
	margin: 0.7em 0 1em;
	text-transform: uppercase;
	font-weight: 700;
}

/* Ultra 1.4.6 zeigte animierte Builder-Zeilen sofort. 8.3.9 lässt sie
   bis zum Scrollen unsichtbar. */
.wow {
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

/* Desktop-Untermenü wie Ultra 1.4.6: 238 px breite Einträge, nicht im Fluss.
   Die Regel darf #mobile-menu auf Desktop nicht treffen, sonst wird der
   Header um die Unterpunkte höher. */
#main-nav li > .sub-menu {
	position: absolute !important;
	width: 246px;
}

#main-nav ul a {
	box-sizing: border-box;
	font-size: 18px;
	font-weight: normal;
	line-height: 1.45em;
	padding: 0.5em 1.25em 0.5em 1.6em;
	text-transform: none;
	width: 238px;
}

/* Customizer setzt top:42px. Ultra 8 macht das Menü statisch, dadurch sitzt es
   oben und der Header wird nicht wie in 1.4.6 von der verschobenen Zeile bestimmt. */
#main-nav {
	position: relative;
	top: 42px;
}

#main-nav > li > a {
	padding: 0.6em 0.7em;
}

#site-logo,
#site-logo img {
	height: 77px;
	max-height: 77px;
}

#headerwrap #site-logo {
	margin: 5px 0 0;
}

@media (max-width: 1200px) {
	body {
		font-size: 1em;
	}
}

@media (max-width: 1000px) {
	#headerwrap #header {
		padding: 10px 0 5px;
	}

	#main-nav {
		top: 0;
	}

	#headerwrap #site-logo {
		margin: 5px 0;
		padding: 0;
	}
}

#site-logo img {
	width: auto;
}

/* Das alte Mobilmenü zeigte die Unterpunkte offen. */
@media (max-width: 1000px) {
	.sidemenu .sub-menu,
	#mobile-menu .sub-menu {
		display: block !important;
		height: auto !important;
		max-height: none !important;
		opacity: 1 !important;
		overflow: visible !important;
		position: static !important;
		visibility: visible !important;
		width: auto !important;
	}

	#main-nav ul a {
		width: auto;
	}

	.sidemenu .child-arrow {
		display: none !important;
	}
}

@media (max-width: 760px) {
	body {
		font-size: 0.95em;
	}

	.page-title,
	#pagewrap h1 {
		font-size: 1.95em;
	}

	#pagewrap h2 {
		font-size: 1.75em;
	}

	#pagewrap h3 {
		font-size: 1.3em;
	}

	#pagewrap h4 {
		font-size: 1.25em;
	}

	body .pagewidth,
	body.full_width .themify_builder_row .row_inner {
		max-width: 90%;
	}
}

@media (max-width: 1000px) and (min-width: 761px) {
	body .pagewidth {
		max-width: 96%;
		width: 96%;
	}
}

@media (min-width: 681px) {
	#footerwrap #footer .col4-1 {
		clear: none;
		float: left;
		margin-left: 3.2%;
		width: 22.6%;
	}

	#footerwrap #footer .col4-1.first {
		margin-left: 0;
	}
}

@media (max-width: 680px) {
	#footerwrap .col4-1,
	#footerwrap .col4-2,
	#footerwrap .col2-1,
	#footerwrap .col4-3,
	#footerwrap .col3-1,
	#footerwrap .col3-2 {
		float: none;
		margin-left: 0;
		max-width: 100%;
		width: 100%;
	}
}

/* Ultra 1.4.6, Layout footer-horizontal-right: kleiner roter Balken
   links über der Fußzeile, nicht der schwebende Kreis von Ultra 8. */
.footer-horizontal-right .back-top.back-top-float,
.footer-horizontal-right .back-top.back-top-float.back-top-hide {
	background: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: block !important;
	height: auto !important;
	inset: auto !important;
	left: 0 !important;
	margin: 0 !important;
	opacity: 1 !important;
	overflow: visible !important;
	pointer-events: auto !important;
	position: absolute !important;
	text-align: center !important;
	top: -89px !important;
	transform: none !important;
	visibility: visible !important;
	width: 60px !important;
}

.footer-horizontal-right .back-top .arrow-up {
	left: auto !important;
	position: static !important;
	top: auto !important;
}

.footer-horizontal-right .back-top .arrow-up a,
.footer-horizontal-right .back-top:hover .arrow-up a {
	background-color: #ed1e24 !important;
	bottom: 0 !important;
	color: #fff !important;
	display: inline-block !important;
	height: 25px !important;
	line-height: 100% !important;
	padding: 10px 0 0 !important;
	position: relative !important;
	width: 60px !important;
}

.footer-horizontal-right .back-top a:before {
	border: 0 !important;
	color: #fff !important;
	content: "\e648" !important;
	display: inline-block !important;
	font-family: themify !important;
	font-size: 1.7rem !important;
	font-style: normal !important;
	font-weight: normal !important;
	height: auto !important;
	left: auto !important;
	line-height: 1 !important;
	margin: 0 !important;
	position: static !important;
	top: auto !important;
	transform: none !important;
	width: auto !important;
}

/* 1.4.6 hatte eckige Bilder und Buttons. Ultra 8 setzt die Radien später per Inline-Style. */
html {
	--theme_rounded: 0px !important;
	--theme_rounded_sm: 0px !important;
	--theme_btn_rounded: 0px !important;
	--theme_input_rounded: 0px !important;
}
