/* pagebuilder.css entsteht aus components/*.css (in Dateinamen-Reihenfolge; wcpb_css_bundle() in der Entwicklung,
   werkzeuge/release.py im Release). Änderungen in den Komponenten vornehmen, nicht in pagebuilder.css. */
/*--------------------------------------------------------------
# SETTINGS
--------------------------------------------------------------*/

body:not(.h-tr) #content {
	padding-top: var(--header-height);
}

/*--------------------------------------------------------------
# BUILDER
--------------------------------------------------------------*/

.min-height-img img {
	max-height: 80vh;
	overflow: hidden;
	min-height: 350px;
	object-fit: cover;
}

.section {
	padding: var(--spacing) 0;
	position: relative;
	display: flex;
  	flex-direction: column;
	gap: var(--spacing);
}

.bg-img {
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.bg-img img {
	height: 100%;
	object-fit: cover;
}

.section > .row {
	display: flex;
	flex-wrap: nowrap;
	margin: 0px auto;
	gap: var(--spacing);
	--gap-factor: 1;
	width: var(--width);
	max-width: var(--maxwidth);
	position: relative;
	align-items: flex-start;
}

.section > .row.g-2 {
	gap: calc(var(--spacing) * 2);
    --gap-factor: 2;
}

.section > .row.g-05 {
	gap: calc(var(--spacing) / 2);
    --gap-factor: 0.5;
}

.section > .row.g-0 {
	gap: 0;
    --gap-factor: 0;
}

.col {
	flex: 1 1 0%;
    min-width: 0;
	display: flex;
  	flex-wrap: wrap;
	position: relative;
	align-items: flex-start;
	gap: 0 var(--el-spacing);
}

@media all and (min-width: 980px) {
	.row > .col-2 { flex: 0 0 calc(100% / 12 * 2 - var(--spacing) * 10 / 12 * var(--gap-factor)); }
	.row > .col-3 { flex: 0 0 calc(100% / 12 * 3 - var(--spacing) * 9 / 12 * var(--gap-factor)); }
	.row > .col-4 { flex: 0 0 calc(100% / 12 * 4 - var(--spacing) * 8 / 12 * var(--gap-factor)); }
	.row > .col-5{ flex: 0 0 calc(100% / 12 * 5 - var(--spacing) * 7 / 12 * var(--gap-factor)); }
	.row > .col-6 { flex: 0 0 calc(100% / 12 * 6 - var(--spacing) * 6 / 12 * var(--gap-factor)); }
	.row > .col-7 { flex: 0 0 calc(100% / 12 * 7 - var(--spacing) * 5 / 12 * var(--gap-factor)); }
	.row > .col-8 { flex: 0 0 calc(100% / 12 * 8 - var(--spacing) * 4 / 12 * var(--gap-factor)); }
	.row > .col-9 { flex: 0 0 calc(100% / 12 * 9 - var(--spacing) * 3 / 12 * var(--gap-factor)); }

	.row > .col-2.mw { max-width: clamp(0px, calc(var(--width) / 12 * 2 - var(--spacing) / 2), calc(var(--maxwidth) / 12 * 2 - var(--spacing) / 2)); }
	.row > .col-3.mw { max-width: clamp(0px, calc(var(--width) / 12 * 3 - var(--spacing) / 2), calc(var(--maxwidth) / 12 * 3 - var(--spacing) / 2)); }
	.row > .col-4.mw { max-width: clamp(0px, calc(var(--width) / 12 * 4 - var(--spacing) / 2), calc(var(--maxwidth) / 12 * 4 - var(--spacing) / 2)); }
	.row > .col-5.mw { max-width: clamp(0px, calc(var(--width) / 12 * 5 - var(--spacing) / 2), calc(var(--maxwidth) / 12 * 5 - var(--spacing) / 2)); }
	.row > .col-6.mw { max-width: clamp(0px, calc(var(--width) / 12 * 6 - var(--spacing) / 2), calc(var(--maxwidth) / 12 * 6 - var(--spacing) / 2)); }
	.row > .col-7.mw { max-width: clamp(0px, calc(var(--width) / 12 * 7 - var(--spacing) / 2), calc(var(--maxwidth) / 12 * 7 - var(--spacing) / 2)); }
	.row > .col-8.mw { max-width: clamp(0px, calc(var(--width) / 12 * 8 - var(--spacing) / 2), calc(var(--maxwidth) / 12 * 8 - var(--spacing) / 2)); }
	.row > .col-9.mw { max-width: clamp(0px, calc(var(--width) / 12 * 9 - var(--spacing) / 2), calc(var(--maxwidth) / 12 * 9 - var(--spacing) / 2)); }
}

.row > .col > div {
	width: 100%;
	--gap-factor: 1;
}

@media all and (min-width: 980px) {
	.row > .col > div.col-2 { width: calc(100% / 12 * 2 - var(--el-spacing) * 10 / 12 * var(--gap-factor)); }
	.row > .col > div.col-3 { width: calc(100% / 12 * 3 - var(--el-spacing) * 9 / 12 * var(--gap-factor)); }
	.row > .col > div.col-4 { width: calc(100% / 12 * 4 - var(--el-spacing) * 8 / 12 * var(--gap-factor)); }
	.row > .col > div.col-6 { width: calc(100% / 12 * 6 - var(--el-spacing) * 6 / 12 * var(--gap-factor)); }
	.row > .col > div.col-8 { width: calc(100% / 12 * 8 - var(--el-spacing) * 4 / 12 * var(--gap-factor)); }
	.row > .col > div.col-9 { width: calc(100% / 12 * 9 - var(--el-spacing) * 3 / 12 * var(--gap-factor)); }
}

.row > .col > div {
	margin-bottom: var(--el-spacing);
}

.row > .col > div:last-child {
	margin-bottom: 0px;
}

.t-c {
	text-align: center;
}

.t-r {
	text-align: right;
}

.full {
	width: 100% !important;
	max-width: unset !important;
}

.short {
	max-width: calc(var(--maxwidth) - 400px) !important;
}

@media all and (min-width: 980px) {
/* Margin and Padding Adjustments */
.m-t-0 { margin-top: 0 !important; }
.m-t-05 { margin-top: calc(0.5 * var(--spacing)) !important; }
.m-t-1 { margin-top: var(--spacing) !important; }
.m-t-15 { margin-top: calc(1.5 * var(--spacing)) !important; }
.m-t-2 { margin-top: calc(2 * var(--spacing)) !important; }
.m-t--05 { margin-top: calc(-0.5 * var(--spacing)) !important; }
.m-t--1 { margin-top: calc(-1 * var(--spacing)) !important; }
.m-t--15 { margin-top: calc(-1.5 * var(--spacing)) !important; }
.m-t--2 { margin-top: calc(-2 * var(--spacing)) !important; }
.m-t-a { margin-top: auto !important;}

.m-r-0 { margin-right: 0 !important; }
.m-r-05 { margin-right: calc(0.5 * var(--spacing)) !important; }
.m-r-1 { margin-right: var(--spacing) !important; }
.m-r-15 { margin-right: calc(1.5 * var(--spacing)) !important; }
.m-r-2 { margin-right: calc(2 * var(--spacing)) !important; }
.m-r--05 { margin-right: calc(-0.5 * var(--spacing)) !important; }
.m-r--1 { margin-right: calc(-1 * var(--spacing)) !important; }
.m-r--15 { margin-right: calc(-1.5 * var(--spacing)) !important; }
.m-r--2 { margin-right: calc(-2 * var(--spacing)) !important; }
.m-r-a { margin-right: auto !important;}

.m-b-0 { margin-bottom: 0 !important; }
.m-b-05 { margin-bottom: calc(0.5 * var(--spacing)) !important; }
.m-b-1 { margin-bottom: var(--spacing) !important; }
.m-b-15 { margin-bottom: calc(1.5 * var(--spacing)) !important; }
.m-b-2 { margin-bottom: calc(2 * var(--spacing)) !important; }
.m-b--05 { margin-bottom: calc(-0.5 * var(--spacing)) !important; }
.m-b--1 { margin-bottom: calc(-1 * var(--spacing)) !important; }
.m-b--15 { margin-bottom: calc(-1.5 * var(--spacing)) !important; }
.m-b--2 { margin-bottom: calc(-2 * var(--spacing)) !important; }
.m-b-a { margin-bottom: auto !important;}

.m-l-0 { margin-left: 0 !important; }
.m-l-05 { margin-left: calc(0.5 * var(--spacing)) !important; }
.m-l-1 { margin-left: var(--spacing) !important; }
.m-l-15 { margin-left: calc(1.5 * var(--spacing)) !important; }
.m-l-2 { margin-left: calc(2 * var(--spacing)) !important; }
.m-l--05 { margin-left: calc(-0.5 * var(--spacing)) !important; }
.m-l--1 { margin-left: calc(-1 * var(--spacing)) !important; }
.m-l--15 { margin-left: calc(-1.5 * var(--spacing)) !important; }
.m-l--2 { margin-left: calc(-2 * var(--spacing)) !important; }
.m-l-a { margin-left: auto !important;}

.p-r-0 { padding-right: 0 !important; }
.p-r-05 { padding-right: calc(0.5 * var(--spacing)) !important; }
.p-r-1 { padding-right: var(--spacing) !important; }
.p-r-15 { padding-right: calc(1.5 * var(--spacing)) !important; }
.p-r-2 { padding-right: calc(2 * var(--spacing)) !important; }

.p-l-0 { padding-left: 0 !important; }
.p-l-05 { padding-left: calc(0.5 * var(--spacing)) !important; }
.p-l-1 { padding-left: var(--spacing) !important; }
.p-l-15 { padding-left: calc(1.5 * var(--spacing)) !important; }
.p-l-2 { padding-left: calc(2 * var(--spacing)) !important; }
}

.p-0 { padding: 0 !important; }
.p-05 { padding: calc(0.5 * var(--spacing)) !important; }
.p-1 { padding: var(--spacing) !important; }
.p-15 { padding: calc(1.5 * var(--spacing)) !important; }
.p-2 { padding: calc(2 * var(--spacing)) !important; }

.p-t-0 { padding-top: 0 !important; }
.p-t-05 { padding-top: calc(0.5 * var(--spacing)) !important; }
.p-t-1 { padding-top: var(--spacing) !important; }
.p-t-15 { padding-top: calc(1.5 * var(--spacing)) !important; }
.p-t-2 { padding-top: calc(2 * var(--spacing)) !important; }

.p-b-0 { padding-bottom: 0 !important; }
.p-b-05 { padding-bottom: calc(0.5 * var(--spacing)) !important; }
.p-b-1 { padding-bottom: var(--spacing) !important; }
.p-b-15 { padding-bottom: calc(1.5 * var(--spacing)) !important; }
.p-b-2 { padding-bottom: calc(2 * var(--spacing)) !important; }

/* Alignment Adjustments */
.a-c { justify-content: center !important; }
.a-r { justify-content: flex-end !important; }

.v-c { align-items: center !important; }
.v-b { align-items: flex-end !important; }
.v-u { align-items: unset !important; }

/* Gap Handling */
.g-0 { gap: 0 !important; }
.g-05 { gap: calc(var(--spacing) / 2) !important; }
.g-1 { gap: var(--spacing) !important; }
.g-2 { gap: calc(2 * var(--spacing)) !important; }

.bg-main-color {background-color: var(--main-color) !important;}
.bg-sub-color {background-color: var(--sub-color) !important;}
.bg-bg-color {background-color: var(--bg-color) !important;}
.bg-text-color {background-color: var(--text-color) !important;}
.bg-color-1 {background-color: var(--color-1) !important;}
.bg-color-2 {background-color: var(--color-2) !important;}
.bg-color-3 {background-color: var(--color-3) !important;}
.bg-color-4 {background-color: var(--color-4) !important;}
.bg-color-5 {background-color: var(--color-5) !important;}
.bg-color-w {background-color: var(--color-w, #fff) !important;}
.bg-color-b {background-color: var(--color-b, #000) !important;}

.b-main-color {border-color: var(--main-color) !important;}
.b-sub-color {border-color: var(--sub-color) !important;}
.b-bg-color {border-color: var(--bg-color) !important;}
.b-text-color {border-color: var(--text-color) !important;}
.b-color-1 {border-color: var(--color-1) !important;}
.b-color-2 {border-color: var(--color-2) !important;}
.b-color-3 {border-color: var(--color-3) !important;}
.b-color-4 {border-color: var(--color-4) !important;}
.b-color-5 {border-color: var(--color-5) !important;}
.b-color-w {border-color: var(--color-w, #fff) !important;}
.b-color-b {border-color: var(--color-b, #000) !important;}

.main-color > *, .main-color {color: var(--main-color) !important;}
.sub-color > *, .sub-color {color: var(--sub-color) !important;}
.bg-color > *, .bg-color {color: var(--bg-color) !important;}
.text-color > *, .text-color {color: var(--text-color) !important;}
.color-1 > *, .color-1 {color: var(--color-1) !important;}
.color-2 > *, .color-2 {color: var(--color-2) !important;}
.color-3 > *, .color-3 {color: var(--color-3) !important;}
.color-4 > *, .color-4 {color: var(--color-4) !important;}
.color-5 > *, .color-5 {color: var(--color-5) !important;}
.color-w > *, .color-w {color: var(--color-w, #fff) !important;}
.color-b > *, .color-b {color: var(--color-b, #000) !important;}

/* Image */

[class*="ratio-"].image img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar-w, 0) / var(--ar-h, 1);
  object-fit: cover;
}

.ratio-1-1.image  { --ratio-w: 1;  --ratio-h: 1; }
.ratio-3-2.image  { --ratio-w: 3;  --ratio-h: 2; }
.ratio-5-4.image  { --ratio-w: 5;  --ratio-h: 4; }
.ratio-7-5.image  { --ratio-w: 7;  --ratio-h: 5; }
.ratio-16-9.image { --ratio-w: 16; --ratio-h: 9; }
.ratio-2-1.image  { --ratio-w: 2;  --ratio-h: 1; }
.ratio-3-1.image  { --ratio-w: 3;  --ratio-h: 1; }

/* Bildausschnitt je Slide (Auswahl „Bildausschnitt" im Slider-Element).
 * Ohne Auswahl gilt das native object-position: center. */
.swiper-slide.pos-top .image img,
.swiper-slide.pos-top .video video {
	object-position: top center;
}

.swiper-slide.pos-bottom .image img,
.swiper-slide.pos-bottom .video video {
	object-position: bottom center;
}

.image {
  --ar-w: var(--ratio-w);
  --ar-h: var(--ratio-h);
}

.image.r-inv {
  --ar-w: var(--ratio-h);
  --ar-h: var(--ratio-w);
}

@media all and (min-width: 980px) {
	.i-h-f {
		height: 100%;
	}

	.i-h-f img {
		height: 100%;
		object-fit: cover;
	}

	.i-h-m {
		height: 100%;
		position: relative;
	}

	.i-h-m img {
		position: absolute;
		top: 0;
		bottom: 0;
		object-fit: cover;
		height: 100%;
		width: 100%;
	}
}


/* Galerie mit Bildunterschriften: jedes Bild als <figure> */
.galerie__bild {
	margin: 0;
}

.galerie__bild figcaption {
	margin-top: 8px;
	font-size: .85em;
	line-height: 1.4;
}
/* Text */

@media all and (min-width: 980px) {
	.t-col-2 {
		column-count:2;
		column-gap: var(--el-spacing);
	}

	.t-col-3 {
		column-count:2;
		column-gap: var(--el-spacing);
	}

	.t-col-3 {
		column-count:2;
		column-gap: var(--el-spacing);
	}
}

/* Akkordeon: Knopf in einer Überschrift (role="heading"), Inhalt als Region. Auf und zu über grid-template-rows,
   das Skript setzt nur die Klasse „open“ und aria-expanded (keine Inline-Styles). */

.wc-akkordeon {
	border-top: 1px solid;
	border-bottom: 1px solid;
}

.accordion-element {
    overflow: hidden; 
	transition: all .3s ease;
	border-bottom: 1px solid;
}

.accordion-element:last-child {
  	border-bottom: 0px !important;
}

.accordion-heading {
	margin: 0;
}

/* Knopf ohne Browser-Optik; :where() hält die Spezifität niedrig, damit Theme-Regeln für .accordion-title gewinnen */
:where(button).accordion-title {
	appearance: none;
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
}

.accordion-title {
    position: relative;
    padding: 20px 50px 20px 30px;
    cursor: pointer;  
	font-size: var(--font-size);
	text-transform: uppercase;
	display: flex;
	align-items: center;
}

.accordion-title::before,
.accordion-title::after {
  content: '';
  position: absolute;
  right: 0px;
  top: 50%;
  width: 12px;
  height: 0;
  border-top: 1px solid var(--text-color);
  transform-origin: center center;
  transition: all 0.3s;
}

.accordion-title:hover:after, .accordion-title:hover:before {
	border-color: var(--main-color);
}

.accordion-title::before { 
  transform: translateY(-50%) rotate(0deg);
}
.accordion-title::after {
  transform: translateY(-50%) rotate(90deg);
}

.accordion-element.open .accordion-title::before {
  transform: translateY(-50%) rotate(-45deg);
}
.accordion-element.open .accordion-title::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion-panel {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}

.accordion-element.open > .accordion-panel {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 0.3s ease;
}

.accordion-panel__inner {
	min-height: 0;
	overflow: hidden;
}

.accordion-content {
	padding: 0px 30px;
	margin-bottom: 0px;
	transition: margin 0.3s ease-in-out;
}

/* Ältere Themes setzten hier max-height: 0 und ließen das Skript die Höhe schreiben */
.accordion-panel .accordion-content {
	max-height: none !important;
}

/* Älterer Aufbau ohne .accordion-panel (eigene Templates, Custom-Strukturen): zu ohne Übergang */
.accordion-element > .accordion-content {
	max-height: 0;
	overflow: hidden;
}

.accordion-element.open > .accordion-content {
	max-height: none;
}

.accordion-element.open .accordion-content {
	margin-bottom: 30px;
}

/* Tabcontent: links die Reiter mit ihrem Text, rechts das Bild des gewählten Reiters. Grundregeln mit :where(), damit
   jedes Theme sie ohne Mühe überschreibt (bis 1.8.0 brachte das Plugin für dieses Element kein CSS mit). */

:where(.tabcontent) {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--el-spacing, 30px);
	align-items: start;
}

:where(.tabcontent) :where(.tab-navigation-item) {
	border-bottom: 1px solid;
}

:where(.tabcontent) :where(.tab-title) {
	padding: 16px 0;
	cursor: pointer;
}

:where(.tabcontent) :where(.tab-title) > * {
	margin: 0;
}

:where(button).tab-toggle {
	appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

:where(.tabcontent) :where(.tab-content) {
	padding: 0 0 20px;
}

:where(.tabcontent) :where(.tab-navigation-item:not(.active)) > .tab-content,
:where(.tabcontent) :where(.tab-element:not(.active)) {
	display: none;
}

/* Slider */

.swiper {
	position: relative;
	overflow: hidden;
	-webkit-text-size-adjust: none;
}

.swiper-wrapper {
	display: flex;
}

.swiper-slide {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	position: relative;
	
}

.swiper-pagination {
	margin-top: var(--el-spacing);
	position: relative;
	align-items: center;
	display: flex;
	z-index: 99;
	justify-content: center;
}

/* Zielgröße 24 × 24 px (WCAG 2.5.8), der sichtbare Punkt bleibt 12 px */
.swiper-pagination-bullet {
	height: 24px;
	width: 24px;
	cursor: pointer;
}

.swiper-pagination-bullet:after {
	content:"";
	height: 12px;
	width: 12px;
	margin: 6px;
	border: 1px solid var(--main-color);
	display: block;
	border-radius: 100%;
}

.swiper-pagination-bullet-active:after {
	background: var(--main-color);
}

.slider.w .swiper-pagination-bullet:after {
	border: 1px solid var(--color-w, #fff);
}

.slider.w .swiper-pagination-bullet-active:after {
	background: var(--color-w, #fff);
}

.swiper-button-next, .swiper-button-prev {
	height: 50px;
	width: 50px;
	position: absolute;
	z-index: 1;
	top: 50%;
	cursor: pointer;
	transition: all .3s ease;
	padding: 10px;
	border: 1px solid var(--main-color);
	border-radius: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Pfeile sind Knöpfe: Browser- und Theme-Vorgaben für button zurücksetzen, ohne Regeln auf die Klasse zu überstimmen */
.swiper-button-next:where(button), .swiper-button-prev:where(button) {
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	appearance: none;
}

.swiper-button-next::before, .swiper-button-prev:before {
	content: "";
	display: block;
	position: absolute;
	height: 15px;
	width: 15px;
	border-right: 1px solid var(--main-color);
	border-top: 1px solid var(--main-color);
	z-index: 2;
	margin-right: 3px;
	margin-top: 3px;
}

.slider.w .swiper-button-next, .slider.w .swiper-button-prev {
	border: 1px solid var(--color-w, #fff);
}

.slider.w .swiper-button-next::before, .slider.w .swiper-button-prev:before {
	border-right: 1px solid var(--color-w, #fff);
	border-top: 1px solid var(--color-w, #fff);
}

.swiper-button-next {
	right: 40px;
	transform: translateY(-50%) rotate(45deg);
}

.swiper-button-prev {
	left: 40px;
	transform: translateY(-50%) rotate(-135deg);
}

.slider.nav-out .swiper-button-next {
	right: -70px;
}

.slider.nav-out .swiper-button-prev {
	left: -70px;
}

.swiper-button-disabled {
	opacity: 0;
	visibility: hidden;
}

.swiper-slide-active {
	z-index: 2;
}

.slider.cont-out .swiper-slide:first-child {
	margin-left: clamp(calc((100% - var(--width)) / 2), calc((100vw - var(--maxwidth)) / 2), calc((100vw - var(--maxwidth)) / 2)) !important;
}

.slider.cont-out .swiper-slide:last-child {
	margin-right: clamp(calc((100% - var(--width)) / 2), calc((100vw - var(--maxwidth)) / 2), calc((100vw - var(--maxwidth)) / 2)) !important;
}

/* Pause-Knopf bei automatischem Wechsel (WCAG 2.2.2), liegt in .swiper unten rechts */
.slider-pause {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	width: 32px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid currentColor;
	border-radius: 100%;
	background: var(--color-w, #fff);
	color: var(--main-color, currentColor);
	cursor: pointer;
	appearance: none;
}

.slider-pause[hidden] {
	display: none;
}

.slider-pause::before {
	content: "";
	box-sizing: border-box;
	width: 10px;
	height: 12px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}

.slider-pause[aria-pressed="true"]::before {
	width: 0;
	height: 0;
	margin-left: 3px;
	border: 6px solid transparent;
	border-left: 10px solid currentColor;
	border-right: 0;
}
/* Video */

.embed-container, .video-container { 
	position: relative; 
	padding-bottom: 56.25%;
	overflow: hidden;
	max-width: 100%;
	height: auto;
} 

.embed-container iframe,
.embed-container object,
.embed-container embed,
.embed-container ._placeholder,
.video-container ._placeholder,
.video-container video { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
  	justify-content: center;
	background: var(--color-b, #000);
}

/* Das Vorschaubild eigener Videos ist ein Knopf: Browser-Vorgaben zurücksetzen */
.placeholder-video:where(button) {
	padding: 0;
	border: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
	appearance: none;
}

.placeholder-video img { 
	height: 100%;
	object-fit: cover;
	opacity: 0.8;
	transition: opacity .3s ease;
}

.placeholder-video:hover img { 
	opacity: 0.6;
}

.video {
	width: 100%;
}

._play {
	height: 65px;
	width: 65px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100%;
	border: 2.5px solid var(--color-w, #fff);
	position: absolute;
	margin: auto;
	padding-left: 5px;
	z-index: 1;
	cursor: pointer;
}

._play::after {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent var(--color-w, #fff);
}

/* Icons */

.icons {
	display: flex;
	gap: 60px;
	justify-content: center;
}

.icons .icon {
	display: flex;
	flex-direction: column;
	gap: 30px;
	max-width: 140px;
	text-align: center;
}

.icons .icon ._image {
	display: flex;
	justify-content: center;
}

.icons .icon ._image img {
	max-width: 40px;
}

/* =================================================================================================
 * ICON (Element „Icon“, frontend/elemente/icon.php; Kürzel [wc_icon]): SVG im Quelltext mit currentColor.
 * Die Farbe ist die Schriftfarbe der Stelle, die Größe kommt aus der Einstellung „Größe“.
 * ============================================================================================== */

.icon-el {
    line-height: 0;
}

.icon-el .wc-icon {
    width: 40px;
    height: 40px;
}

.icon-el.icon-s .wc-icon {
    width: 24px;
    height: 24px;
}

.icon-el.icon-l .wc-icon {
    width: 64px;
    height: 64px;
}

.icon-el.icon-xl .wc-icon {
    width: 96px;
    height: 96px;
}

.icon-el a {
    display: inline-block;
    color: inherit;
}

/* im Fließtext sitzt das Icon auf der Grundlinie der Schrift */
.wc-icon {
    vertical-align: -0.125em;
}
/* Button */

.col > div.button {
  	width: auto !important;
}

div.button:has(.t-r) {
	margin-left: auto;
}

div.button:has(.t-l) {
	margin-right: auto;
}

div.button:has(.t-c) {
	margin-right: auto;
	margin-left: auto;
}

/*--------------------------------------------------------------
# RESPONSIVE
--------------------------------------------------------------*/

@media all and (max-width: 980px) {

	.section {
		padding: var(--spacing) 0;
	}

	.section > .row {
		flex-wrap: wrap;
		gap: var(--el-spacing);
	}

	.row > .col { 
		flex: 0 0 100%; 
	}

	.row > .col > div.col-2, .row > .col > div.col-3, .row > .col > div.col-4, .row > .col > div.col-6, .row > .col > div.col-8, .row > .col > div.col-9 { 
		width: 100%; 
	}

	.p-1 {
		padding: var(--spacing) calc((100% - var(--width)) / 2) !important;
	}

}

/* =================================================================================================
 * UTILITIES FÜR SELBSTGEBAUTE ELEMENTE (Custom / Custom-Repeater / Dynamic)
 *
 * Diese Klassen können direkt im STRUCTURE_HTML verwendet werden, damit eigene
 * Elemente ohne zusätzliches CSS sauber aussehen. Sie nutzen die CSS-Variablen
 * der Theme-Optionen und passen sich damit automatisch dem Projekt an.
 *
 * Dokumentiert in DOCS/PAGEBUILDER.md.
 * ============================================================================================== */

/* ---------- Raster ---------- */
.wc-grid {
    display: grid;
    gap: var(--el-spacing, 20px);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .wc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .wc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Karte ---------- */
.wc-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--el-spacing, 20px);
    border-radius: 8px;
    background: var(--color-w, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}

.wc-card--plain {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.wc-card__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.wc-card__title { margin: 0; }
.wc-card__text  { margin: 0; }

.wc-card__meta {
    font-size: .85em;
    opacity: .7;
}

/* ---------- Medien-Verhältnisse ---------- */
.wc-ratio-16-9 img,
.wc-ratio-4-3 img,
.wc-ratio-1-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wc-ratio-16-9 { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; }
.wc-ratio-4-3  { aspect-ratio: 4 / 3;  overflow: hidden; border-radius: 6px; }
.wc-ratio-1-1  { aspect-ratio: 1 / 1;  overflow: hidden; border-radius: 6px; }

/* ---------- Anordnung ---------- */
.wc-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wc-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--el-spacing, 20px);
    align-items: center;
}

.wc-between { justify-content: space-between; }
.wc-center  { justify-content: center; text-align: center; }

/* ---------- Listen ---------- */
.wc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--color-2, #eee);
    font-size: .85em;
    line-height: 1.5;
}

/* ---------- Leerzustand (z. B. Dynamic ohne Treffer) ---------- */
.wc-empty {
    padding: var(--el-spacing, 20px);
    border: 1px dashed var(--color-1, #ccc);
    border-radius: 8px;
    text-align: center;
    opacity: .75;
}

/* =================================================================================================
 * BUTTON-ERGÄNZUNGEN
 * ============================================================================================== */

/*
 * "Nur Icon": Die Option ist im Settings-Panel seit jeher wählbar und wird als
 * Klasse ausgegeben — es gab dafür aber keine einzige CSS-Regel. Der Button sah
 * damit unverändert aus.
 */
a.button.only-icon {
    padding: 2px;
    gap: 0;
}

a.button.only-icon > span:not(.btn-icon),
a.button.only-icon > *:not(.btn-icon):not(.dashicons) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/*
 * Eigenes Icon am Button (Einstellung „Icon“, modules/icons/): Das SVG ersetzt das Zeichen der Variante und steht
 * auch bei Varianten ohne Icon. Farbe wie das Zeichen der Variante (currentColor), Größe an der Schrift.
 */
a.button .btn-icon.btn-icon--svg {
    display: inline-grid;
    place-items: center;
}

a.button .btn-icon--svg::before,
a.button .btn-icon--svg::after {
    content: none;
}

a.button .btn-icon--svg .wc-icon {
    width: 1.2em;
    height: 1.2em;
}

a.button.icon-vor {
    flex-direction: row-reverse;
}

/* Fokus, Hilfsklassen, Mobil-Regeln neuer Komponenten und reduzierte Bewegung. --ring lässt sich im Theme setzen. */

:where(.accordion-title, .tab-toggle, .tab-title[role="button"], a.button, .swiper-button-prev, .swiper-button-next, .swiper-pagination-bullet, .slider-pause, .placeholder-video):focus-visible {
	outline: var(--ring, 2px solid var(--main-color, currentColor));
	outline-offset: 2px;
}

/* Nur für Screenreader sichtbar */
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 768px) {
	:where(.tabcontent) {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.accordion-element,
	.accordion-panel,
	.accordion-element.open > .accordion-panel,
	.accordion-content,
	.accordion-title::before,
	.accordion-title::after {
		transition: none;
	}
}
