/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/*---------------------------------------------------------------------------------------------------
# Allgemein
---------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------
	##  DESIGN TOKENS & WORDPRESS PRESETS  (:root)
------------------------------------------------------------*/
:root {
	/* WordPress Preset: Schriftgroessen (S -> XXL) */
	--wp--preset--font-size--small:    0.875rem;   /*  14px  */
	--wp--preset--font-size--medium:   1rem;        /*  16px  */
	--wp--preset--font-size--large:    1.25rem;     /*  20px  */
	--wp--preset--font-size--x-large:  1.75rem;     /*  28px  */
	--wp--preset--font-size--xx-large: 3.75rem;     /*  36px  */

	/* WordPress Preset: Spacing-Skala (20 -> 80) */
	--wp--preset--spacing--20:  0.5rem;    /*   8px - 2XS */
	--wp--preset--spacing--30:  0.75rem;   /*  12px - XS  */
	--wp--preset--spacing--40:  1rem;      /*  16px - S   */
	--wp--preset--spacing--50:  1.5rem;    /*  24px - M   */
	--wp--preset--spacing--60:  2.5rem;    /*  40px - L   */
	--wp--preset--spacing--70:  4rem;      /*  64px - XL  */
	--wp--preset--spacing--80:  6rem;      /*  96px - 2XL */
}

/*-----------------------------------------------------------
	##  BASE - html & body
------------------------------------------------------------*/
html {
	font-size: var(--theme-font-size, 1rem);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	text-underline-offset: 5px;
}

body {
	font-size: 1rem;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	word-break: break-word;
	overflow-wrap: break-word;
}

/*-----------------------------------------------------------
	##  UEBERSCHRIFTEN  h1 - h6
------------------------------------------------------------*/
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
	margin-top: 0 !important;
	margin-bottom: var(--wp--preset--spacing--30) !important; /* 12px - XS */
}
/*-----------------------------------------------------------
	##  FLIESSTEXT  p, ul, ol, figure
------------------------------------------------------------*/

/* Absatz */
body p {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--50)!important; /* 24px - M */
}
body p:last-child {
	margin-bottom: 0;
}
button p {
	margin-bottom: 0px!important;
}

/* Listen */
#main article .entry-content ul,
#main article .entry-content ol {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--50); /* 24px - M */
}

#main article .entry-content ul ul,
#main article .entry-content ul ol,
#main article .entry-content ol ul,
#main article .entry-content ol ol {
	margin-top: 0;
	margin-bottom: 0;
}

#main article .entry-content li {
	margin-bottom: var(--wp--preset--spacing--20); /* 8px - 2XS */
}

#main article .entry-content li:last-child {
	margin-bottom: 0;
}

/* Abbildungen */
body figure {
	margin-top: 0 !important;
	margin-bottom: var(--wp--preset--spacing--60) !important; /* 40px - L */
	margin-inline: 0;
}

body figcaption {
	font-size: var(--wp--preset--font-size--small);
	margin-top: var(--wp--preset--spacing--20); /* 8px - 2XS */
}
/*-----------------------------------------------------------
	## WordPress
------------------------------------------------------------*/
/* Detals-Block */
details.wp-block-details summary {
    list-style: none;
    cursor: pointer;
    text-align: center;
    position: relative;
}
details.wp-block-details summary::before {
    content: "+";
    margin-right: 0.4em;  /* statt position:absolute, einfach inline davor */
    font-size: 1.2em;
    font-weight: 300;
}
details.wp-block-details[open] summary::before {
    content: "−";
}
/*-----------------------------------------------------------
	## Helper-Classes
------------------------------------------------------------*/
.wp-block-column.sticky-col {
  position: sticky;
  top: 20%; /* Abstand vom oberen Rand beim Scrollen */
  align-self: flex-start; /* wichtig! sonst streckt sich die Spalte */
  height: fit-content;
}
@media (max-width: 781px) {
  .wp-block-columns .wp-block-column.sticky-col {
    position: static;
  }
}
.cstm-icon-btn:after, .cstm-link:after {
    font-family: 'Font Awesome 5 Free';    
    font-style: normal;
    font-weight: normal;
    font-weight: 900;
	margin-left: 5px;
}
.cstm-internal-link:after {   
    content: "\f30b";
}
.cstm-external-link:after {    
    content: "\f35d";    
}
.cstm-download-link:after {   
    content: "\f019";   
}
.cstm-affiliate-link:after {    
    content: "\f35d (Werbelink)";    
}
.cstm-bs {
	 box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
.cstm-img-bs img {
	 box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
.cstm-list-checks {
    list-style: none;
    padding-left: 0;
}
.cstm-list-checks li {
    padding-left: 1.75em;
    position: relative;
}
.cstm-list-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 0.5em;
    height: 0.9em;
    border-right: 2px solid #2e7d32;  /* Farbe anpassen */
    border-bottom: 2px solid #2e7d32;
    transform: rotate(45deg);
}
p.cstm-overline {
 font-family: 'Roboto';
 font-size: 1.2rem;
 font-weight: 800!important;
 margin-bottom:0.2rem!important;
}
/*-----------------------------------------------------------
	##   Divers
------------------------------------------------------------*/
.ct-footer p a {
	text-decoration: none!important;
}

/*-----------------------------------------------------------
	##   Accessibility
------------------------------------------------------------*/
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
/*------------------------------------
	## Animationen
------------------------------------*/
/* Fade In Animations (Uku Neo, Standard) */
.fadein {
	opacity: 0;
	transform: translateZ(0px);
	transition: opacity 0.7s ease-in-out 0s;
}
.fadein {
    opacity: 0;
    transform: translateY(30px);
}
.fadein {
    opacity: 0;
    transform: translateY(30px);
}
.fadein.inview {
    opacity: 1;
    transform: translateY(0px);
    transition: transform 1s ease 0s, opacity 1.5s ease 0s;
}
.animated.infinite {
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
}
.animated {
	-webkit-animation-duration: 1s;
	animation-duration: 1s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
}
@-webkit-keyframes fadeInDown {
	0% {
		opacity: 0;
		-webkit-transform: translate3d(0, -100%, 0);
		transform: translate3d(0, -100%, 0)
	}

	to {
		opacity: 1;
		-webkit-transform: translateZ(0);
		transform: translateZ(0)
	}
}
@keyframes fadeInDown {
	0% {
		opacity: 0;
		-webkit-transform: translate3d(0, -100%, 0);
		transform: translate3d(0, -100%, 0)
	}

	to {
		opacity: 1;
		-webkit-transform: translateZ(0);
		transform: translateZ(0)
	}
}
.fadeInDown {
	-webkit-animation-name: fadeInDown;
	animation-name: fadeInDown
}	
/*---------------------------------------------------------------------------------------------------
# UI-Elements / Forms, Buttons ...
---------------------------------------------------------------------------------------------------*/ 
/*------------------------------------
	## Buttons & Links
------------------------------------*/
/* Accessibility*/
a:focus-visible,button:focus-visible, .pds-js-accordion-item:focus-visible {
	border-radius: 0px;
	outline: 3px solid #fec200!important;    
    outline-offset: 5px!important;   
}
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
    content: "";
    background-color: rgba(0,0,0,0);
}
/* Gutenberg-Buttons und Generate Blocks Buttons */
.wp-block-button, .wp-block-button a, .gb-button {
	-webkit-transition: all 0.4s!important;
	-moz-transition: all 0.4s!important;
	transition: all 0.4s!important;
}
/*---------------------------------------------------------------------------------------------------
	# Plugins & externe Dienste
---------------------------------------------------------------------------------------------------*/
/*------------------------------------
	## Custom Plugin
------------------------------------*/ 
.table-of-contents {
	margin-bottom: 40px!important;
	position: relative;
	background-color: var(--theme-palette-color-7);
	padding: .5rem 1rem;
	border-left: 5px solid var(--theme-palette-color-1);
	border-radius: 5px;
}  
.table-of-contents .toc-headline {
	font-size: 22px;
	color: var(--theme-palette-color-3);
	font-weight: 600;
	display: block;
	cursor: pointer;
}
.toc-headline i {
	margin-right: 15px;
} 
.table-of-contents .toggle-toc {
	position: absolute;
	top: .6rem;
	right: .8rem;
	font-size: 15px;
	cursor: pointer;
	font-weight: 800;
	color: var(--theme-palette-color-8);
	width: 1.5rem;
	height: 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	line-height: 10px;
	background-color: var(--theme-palette-color-1);
}
.table-of-contents ul {
	padding: 0;	
}
.table-of-contents li {
	position: relative;
	list-style: none;
	line-height: var(--line-height);
	font-weight: 400;
	margin: .3rem 0;
	transition: .2s ease all;
}
.table-of-contents li a {
	font-size: var(--font-size);
	line-height: var(--line-height);
	color: var(--main-color);
}
/*------------------------------------
	## swiper-Slider
------------------------------------*/ 
.swiper-button-next, .swiper-button-prev {
	background-color: var(--theme-palette-color-8);
	color: var(--theme-palette-color-1);
}
/*------------------------------------
	## Leaving Notice Popup
------------------------------------*/ 
.externallinknotice-icon {
	background-color: var(--theme-palette-color-7);	
	color: var(--theme-palette-color-3);
}
.externallinknotice-close {    
    color: var(--theme-palette-color-3);  
	font-size: 40px;       
	top: 5px;
}
/*------------------------------------
	## GenerateBlocks-Plugin
------------------------------------*/

/*
@media screen and (max-width: 1350px) { 	
	#main .entry-content > .gb-container{
		padding-left: 15px!important;
		padding-right: 15px!important;
	} 
} 
    */
/*------------------------------------
	## Visual Portfolio
------------------------------------*/
/*
figure.vp-portfolio__item {
	border-radius: 10px;
}
*/
/*------------------------------------
	## YOAST - FAQ - Accordion
------------------------------------*/
.schema-faq-section {
	border: 1px solid var(--theme-palette-color-5)!important;
    margin-bottom: 0.8rem!important;
    background-color: #ffffff!important;
}
.schema-faq .schema-faq-question:after {
	color: var(--theme-palette-color-8)!important;
	font-size: var(--theme-font-size)!important;
}
.schema-faq-question {
	background-color: var(--theme-palette-color-1)!important;
	color: var(--theme-palette-color-8)!important;
	font-family: var(--theme-font-family)!important;
    font-size: var(--theme-font-size)!important;
    font-weight: bold;
}
.schema-faq .schema-faq-question.faq-q-open {
    border-bottom: 1px solid var(--theme-palette-color-5)!important;
}
.schema-faq p.schema-faq-answer {
	background-color: var(--theme-palette-color-8)!important;
    font-size: var(--theme-font-size)!important;
    line-height: 1.4;
    border-bottom: none!important;
	margin-bottom: 0px!important;
}
/*------------------------------------
	## Plethora Tabs + Accordions
------------------------------------*/
/* Accordions */
.plethoraplugins-accordion.plethoraplugins-theme__minimal.plethoraplugins-theme__basic .pds-accordion__title {   
    padding: 0.6rem!important;
}
.plethoraplugins-accordion.plethoraplugins-theme__minimal.plethoraplugins-theme__basic, .plethoraplugins-accordion.plethoraplugins-theme__minimal.plethoraplugins-theme__tabby {
	background-color: transparent!important;
	padding: 0px!important;
}
.pds-accordion__item {
	margin-bottom: 0.8rem!important;
}
.pds-accordion__title {
	background-color: var(--theme-palette-color-1)!important;
	color: var(--theme-palette-color-8)!important;
}
/* Tabs */
.plethoraplugins-tabs-container--horizontal.plethoraplugins-theme__minimal.plethoraplugins-theme__basic, .plethoraplugins-tabs-container--horizontal.plethoraplugins-theme__minimal.plethoraplugins-theme__tabby {
   padding: 0px!important;
}
.plethoraplugins-tabs-container--horizontal.plethoraplugins-theme__minimal.plethoraplugins-theme__basic, .plethoraplugins-tabs-container--horizontal.plethoraplugins-theme__minimal.plethoraplugins-theme__tabby {
    background-color: transparent!important;
}
.plethoraplugins-tabs a.active:after {
	background-color: var(--theme-palette-color-1)!important;
	border-top-color: var(--theme-palette-color-1)!important;
}
/*------------------------------------
	## Easy Tabs Block
------------------------------------*/
.wp-block-easy-tabs-block-tab-contents {
	padding: 0px;
}
.wp-block-easy-tabs-block-tabs .wp-block-easy-tabs-block-tab-buttons {
    margin-bottom: 0rem;
}