/*
Theme Name: PAKKI (Avada Child)
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/


/*

todo: get breakpoints from avada options and use as variable?

*/


/* colors */
:root {
	--white: var(--awb-color1);
	--primary: var(--awb-color4);
	--primary-light: var(--awb-color5);
	--primary-lighter: var(--awb-color6);
}


/* default */
p:empty{
	display: none;
}
.lude-lineheight .fusion-li-item {
  margin-bottom: 15px;
}
.lude-lineheight .fusion-li-item .fusion-li-item-content{
	line-height: 1.1;
}

.mobile-h3 h3{
	@media (max-width: 639px){
		font-size:40px!important;
	}
}

.fusion-text h1, .fusion-text h2, .fusion-text h3, .fusion-title h1, .fusion-title h2, .fusion-title h3{
	@media (max-width: 639px){
		hyphens: auto;
	}
}
.fusion-title p{
	margin: 0;
}
.fusion-text.lead p, .fusion-content-tb.lead p{
	@media (max-width: 1024px){
		font-size: 23px;
	}
	@media (max-width: 639px){
		font-size: 21px;
	}
}
.fusion-text ul, .fusion-text ol, .fusion-content-tb ol, .toggle-content ol{
	padding-left: 1em;
}
.fusion-text ol li:not(:first-child), .fusion-text ul li:not(:first-child), .fusion-content-tb ol li:not(:first-child), .fusion-content-tb ul li:not(:first-child), .toggle-content ol li:not(:first-child), .toggle-content ul li:not(:first-child){
	margin-top: .5em;
}
.fusion-text ul, .fusion-content-tb ul, .toggle-content ul{
	list-style: none;
	padding: 0;
}
.fusion-text ul li, .fusion-content-tb ul li, .toggle-content ul li{
	padding-left: 1em;
    text-indent: -1em;
}
.fusion-text ul li:before, .fusion-content-tb ul li:before, .toggle-content ul li:before{
	content: "-";
    display: block;
    float: left;
    width: 1em;
}
.hide-desktop{
	@media (min-width: 1025px) {
		display: none!important;
	}
}
.hyphens-on{
	hyphens: auto;
}
.no-underline a{
	text-decoration: none!important;
}
.fusion-button.fusion-button-default{
	@media (max-width: 1024px){
		padding: 13px 40px!important;
	}
	@media (max-width: 639px){
		padding: 11px 30px!important;
	}
}
.ilightbox-holder.metro-white{
	border-radius: 15px;
}
.ilightbox-holder.metro-white .ilightbox-container{
	padding: 10px;
}
.ilightbox-holder.metro-white .ilightbox-inner-toolbar .ilightbox-title{
	padding-bottom: 2px!important;
}
.ilightbox-holder.metro-white .ilightbox-image{
	border-radius: 10px;
}
.fusion-accordian .panel-body img{
	border-radius: 10px;
}
.w-100, .w-100 img{
	width: 100%;
}
.fusion-placeholder-image{
	background: var(--primary-light)!important;
}
.fusion-placeholder-image::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 50px 50px;
  filter: brightness(0) invert(1);
  opacity: .5;
}
.pointer-events-none{
	pointer-events: none;
}
.pointer-events-all{
	pointer-events: all;
}


/* copyright */
.copyright p{
	transition: .5s;
	display: inline-block;
	padding: 3px 5px;
	border-radius: 3px;
	backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, .15);
}
.copyright:hover p{
	color: var(--white);
	background-color: rgba(0, 0, 0, .5);
}


/* person */
.pakki-person .person-title{
	hyphens: auto;
}
.pakki-person .person-content{
	margin-top: 10px!important;
}


/* header */
#header .contact a:not(:first-child){
	margin-left: 24px;
}
#header .logo .fusion-column-wrapper{
	@media (max-width: 1024px){
		justify-content: center!important;
	}
}


/* content */
#content{
	margin-bottom: 0!important;
}


/* footer */
#socket .awb-menu ul li:first-child span{
	border-left: 0;
}


/* home schwerpunkte */
@media (min-width: 640px){
	.focus-img-left{
		border-top-left-radius: 0!important;
		border-bottom-left-radius: 0!important;
	}
	.focus-img-right{
		border-top-right-radius: 0!important;
		border-bottom-right-radius: 0!important;
	}
}


/* blog */
.posts-home .fusion-grid > li{
	--awb-inner-bg-color-hover: var(--white)!important;
}
.posts-home .fusion-grid > li:hover a, .posts-archive .fusion-grid > li:hover a{
	color: var(--primary);
}
.posts-home .fusion-grid > li:last-child{
	@media (min-width: 640px) and (max-width: 1024px){
		display: none;
	}
}
.pakki-single-content p:last-child{
	margin-bottom: 0;
}
.pakki-single-content img[class*="wp-image-"]{
	border-radius: 10px;
}


/* gallery */
.gallery{
	display: flex;
	flex-direction: row;
	gap: 20px;
	flex-wrap: wrap;
	box-sizing: border-box;
	margin-bottom: 20px!important;
}
.gallery p{
	display: none;
}
.gallery .gallery-item{
	margin: 0;
	width: 100%;
}
.gallery .gallery-item img{
	border-radius: 10px;
	width: 100%;
}
.gallery.gallery-columns-2 .gallery-item{
	width: calc(50% - 10px);
}
.gallery.gallery-columns-3 .gallery-item{
	width: calc(50% - 10px);
	@media (min-width: 640px){
		width: calc(33.333% - 13.333px);
	}
}
.gallery.gallery-columns-4 .gallery-item{
	width: calc(50% - 10px);
	@media (min-width: 640px){
		width: calc(25% - 15px);
	}
}
.gallery.gallery-columns-5 .gallery-item{
	width: calc(50% - 10px);
	@media (min-width: 640px){
		width: calc(20% - 16px);
	}
}
.gallery.gallery-columns-6 .gallery-item, .gallery.gallery-columns-7 .gallery-item{
	width: calc(50% - 10px);
	@media (min-width: 640px){
		width: calc(16.666% - 16.666px);
	}
}
.gallery.gallery-columns-8 .gallery-item, .gallery.gallery-columns-9 .gallery-item{
	width: calc(50% - 10px);
	@media (min-width: 640px){
		width: calc(12.5% - 17.5px);
	}
}

/* schließbare Infobereich */
.pakki-info-close-host {
	position: relative;
	padding-top: max(
		64px,
		var(--pakki-info-padding-top, var(--awb-padding-top, 0px))
	) !important;
}

.js-current-info .js-current-info-close {
	position: absolute;
	top: 0px;
	right: 0px;
	z-index: 2;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 64px;
	min-width: 64px;
	height: 64px;
	min-height: 64px;
	margin: 0 !important;
	padding: 8px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--pakki-info-close-color, var(--awb-color1, #ffffff)) !important;
	font-size: 28px !important;
	line-height: 1 !important;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
}

.js-current-info .js-current-info-close::before {
	font-size: inherit;
	line-height: 1;
}

.js-current-info .js-current-info-close:hover {
	background: rgb(0 0 0 / 7%);
	color: var(--awb-color8)!important;
}

.js-current-info .js-current-info-close:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.js-current-info[hidden] {
	display: none !important;
}

@media (min-width: 640px) and (max-width: 1024px) {
	.pakki-info-close-host {
		padding-top: max(
			64px,
			var(
				--pakki-info-padding-top,
				var(--awb-padding-top-medium, var(--awb-padding-top, 0px))
			)
		) !important;
	}
}

@media (max-width: 639px) {
	.js-current-info .js-current-info-close {
		top: 8px;
		right: 8px;
		font-size: 24px !important;
	}

	.pakki-info-close-host {
		padding-top: max(
			64px,
			var(
				--pakki-info-padding-top,
				var(--awb-padding-top-small, var(--awb-padding-top, 0px))
			)
		) !important;
	}
}

