/*
 * Luis Bauer – Design der eigenen UX-Builder-Elemente und Feinschliff für Flatsome.
 * Farben/Schriften kommen als CSS-Variablen aus dem Customizer (inc/assets.php).
 */

:root {
	--lb-accent: #ff214c;
	--lb-text: #222;
	--lb-light: #ebebeb;
	--lb-dark: #111;
	--lb-font-display: inherit;
	--lb-font-body: inherit;
	--lb-font-script: Georgia, serif;
	--lb-h-weight: 900;
	--lb-h-transform: uppercase;
	--lb-h-size: 72px;
	--lb-h-size-sm: 40px;
	--lb-header-h: 0px;
}

/* ------------------------------------------------------------------ */
/* Grundlagen                                                          */
/* ------------------------------------------------------------------ */

.lb-theme {
	color: var(--lb-text);
}

.lb-theme p {
	line-height: 1.85;
}

/* Hintergrund-Klassen für Flatsome-Sektionen (Feld „Custom Class“). */
.section.lb-bg-accent > .section-bg,
.lb-bg-accent:not(.section) { background-color: var(--lb-accent); }
.section.lb-bg-light > .section-bg,
.lb-bg-light:not(.section) { background-color: var(--lb-light); }
.section.lb-bg-dark > .section-bg,
.lb-bg-dark:not(.section) { background-color: var(--lb-dark); }

.lb-text-accent,
.lb-text-accent a { color: var(--lb-accent); }

/* Bild mit breitem Rahmen in Akzentfarbe (Klasse „lb-frame-accent“ am Bild-Element). */
.lb-frame-accent .img-inner,
.lb-frame-accent img.lb-media-card__img {
	border: 14px solid var(--lb-accent);
}

/* Buchcover/Fotos mit weißem Rand und Schatten (Klasse „lb-frame-white“). */
.lb-frame-white .img-inner {
	border: 5px solid #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

/* Platzhalter im UX Builder. */
.lb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .05) 0 14px, rgba(0, 0, 0, .09) 14px 28px);
	color: rgba(0, 0, 0, .55);
	font: 600 12px/1.3 var(--lb-font-body, sans-serif);
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.lb-logo-text #logo > a {
	color: var(--lb-accent);
	font-family: var(--lb-font-display);
	font-weight: 500;
	font-size: 22px;
	letter-spacing: .01em;
	text-transform: uppercase;
	white-space: nowrap;
}

.lb-theme .header-nav-main.nav > li > a {
	font-weight: 500;
	letter-spacing: .01em;
}

@media (max-width: 549px) {
	.lb-logo-text #logo > a {
		font-size: 15px;
		white-space: normal;
		line-height: 1.25;
	}
}

/* ------------------------------------------------------------------ */
/* Buttons (Customizer › Header & Buttons › Button-Stil)               */
/* ------------------------------------------------------------------ */

.lb-buttons .button:not(.icon) {
	border-radius: 0;
	font-weight: 600;
	letter-spacing: .12em;
}

.lb-buttons .button.is-outline {
	border-width: 2px;
}

.lb-buttons .button.is-link {
	color: var(--lb-accent);
	letter-spacing: .14em;
	text-transform: none;
	padding-left: 0;
	padding-right: 0;
}

.lb-buttons .dark .button.is-link {
	color: #fff;
}

/* Heller Rahmen um gefüllte Buttons, z. B. im Hero (Klasse „lb-btn-ring“). */
.button.lb-btn-ring {
	box-shadow: 0 0 0 2px #fff;
}

/* ------------------------------------------------------------------ */
/* Überschrift [lb_headline]                                           */
/* ------------------------------------------------------------------ */

.lb-headline {
	--lb-hs: var(--lb-h-size-sm);
	margin-bottom: 24px;
}

@media (min-width: 550px) {
	.lb-headline { --lb-hs: calc((var(--lb-h-size-sm) + var(--lb-h-size)) / 2); }
}

@media (min-width: 850px) {
	.lb-headline { --lb-hs: var(--lb-h-size); }
}

.lb-headline .lb-headline__title {
	width: auto;
	margin: 0;
	color: var(--lb-h-color, var(--lb-accent));
	font-family: var(--lb-font-display);
	font-size: var(--lb-hs);
	font-weight: var(--lb-h-w, var(--lb-h-weight));
	line-height: var(--lb-h-lh, 1);
	letter-spacing: var(--lb-h-ls, 0);
	text-transform: var(--lb-h-transform);
	overflow-wrap: normal; /* lange Wörter nicht zerhacken – lb.js verkleinert bei Bedarf */
	hyphens: manual;
}

.lb-headline--upper .lb-headline__title { text-transform: uppercase; }
.lb-headline--normal-case .lb-headline__title { text-transform: none; }

.lb-headline__sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .1em .45em;
	margin-top: .08em;
	font-size: var(--lb-hs);
}

.lb-headline__subline {
	display: inline-block;
	color: var(--lb-hs-color, var(--lb-h-color, var(--lb-accent)));
}

.lb-headline--sub-script .lb-headline__subline {
	font-family: var(--lb-font-script);
	font-size: .62em;
	font-style: italic;
	font-weight: 700;
	font-variation-settings: "SOFT" 100, "WONK" 1;
	line-height: 1.05;
	letter-spacing: -.01em;
}

.lb-headline--sub-caps .lb-headline__subline {
	font-family: var(--lb-font-body);
	font-size: .5em;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: uppercase;
}

.lb-headline--sub-text .lb-headline__subline {
	color: var(--lb-hs-color, var(--lb-text));
	font-family: var(--lb-font-body);
	font-size: .34em;
	font-weight: 400;
	line-height: 1.4;
}

.lb-headline--center { text-align: center; }
.lb-headline--center .lb-headline__sub { justify-content: center; }
.lb-headline--right { text-align: right; }
.lb-headline--right .lb-headline__sub { justify-content: flex-end; }

@media (max-width: 549px) {
	.lb-headline--sm-left { text-align: left; }
	.lb-headline--sm-left .lb-headline__sub { justify-content: flex-start; }
	.lb-headline--sm-center { text-align: center; }
	.lb-headline--sm-center .lb-headline__sub { justify-content: center; }
	.lb-headline--sm-right { text-align: right; }
	.lb-headline--sm-right .lb-headline__sub { justify-content: flex-end; }
}

/* Ovales Badge. */
.lb-badge {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-self: flex-start;
	padding: .62em 1.15em .55em;
	border: 2px solid var(--lb-b-color, var(--lb-accent));
	border-radius: 50%;
	color: var(--lb-b-color, var(--lb-accent));
	font-family: var(--lb-font-display);
	font-size: max(11px, calc(var(--lb-hs) * .25));
	font-style: normal;
	font-weight: 800;
	line-height: .92;
	letter-spacing: 0;
	text-align: left;
	text-transform: uppercase;
	transform: translateY(-.35em) rotate(-3deg);
	white-space: nowrap;
}

.lb-badge__thin { font-weight: 400; }

/* ------------------------------------------------------------------ */
/* Scroll-Reveal [lb_reveal]                                           */
/* ------------------------------------------------------------------ */

.lb-reveal {
	--lb-r-x: 70%;
	--lb-r-y: 30%;
	--lb-r-top: 0px;
	position: relative;
	display: flex;
	align-items: center;
	min-height: 120vh;
	background-color: var(--lb-r-bg, var(--lb-light));
	clip-path: inset(0);         /* schneidet das fixierte Bild auf die Sektion zu */
	isolation: isolate;
	overflow: hidden;
}

.lb-reveal--v-top { align-items: flex-start; }
.lb-reveal--v-bottom { align-items: flex-end; }

.lb-reveal-below-header .lb-reveal,
.lb-reveal.lb-reveal--below-header {
	--lb-r-top: var(--lb-header-h, 0px);
}

.lb-reveal.lb-reveal--full-viewport {
	--lb-r-top: 0px;
}

.lb-reveal__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.lb-reveal__frame {
	position: absolute;
	inset: 0;
}

/* Fenster-Effekt: Bild steht relativ zum Bildschirm. */
.lb-reveal--fixed .lb-reveal__frame {
	position: fixed;
	top: var(--lb-r-top);
	right: auto;
	bottom: auto;
	left: 0;
	width: 100%;
	height: calc(100vh - var(--lb-r-top));
	height: calc(100lvh - var(--lb-r-top));
}

/* Parallax: Bild etwas höher, JS verschiebt es. */
.lb-reveal--parallax .lb-reveal__frame {
	top: -15%;
	bottom: -15%;
	will-change: transform;
}

.lb-reveal__frame picture,
.lb-reveal__frame .lb-reveal__img {
	display: block;
	width: 100%;
	height: 100%;
}

.lb-reveal__frame .lb-reveal__img {
	max-width: none;
	object-fit: cover;
	object-position: var(--lb-r-x) var(--lb-r-y);
}

.lb-reveal__overlay {
	position: absolute;
	inset: 0;
	background: var(--lb-r-overlay, transparent);
}

.lb-reveal__fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, var(--lb-r-bg, var(--lb-light)) 0%, var(--lb-r-bg, var(--lb-light)) calc(var(--lb-r-fade, 50%) * .4), transparent var(--lb-r-fade, 50%));
}

.lb-reveal--text-right .lb-reveal__fade {
	background: linear-gradient(to left, var(--lb-r-bg, var(--lb-light)) 0%, var(--lb-r-bg, var(--lb-light)) calc(var(--lb-r-fade, 50%) * .4), transparent var(--lb-r-fade, 50%));
}

/* Halbe Seite: Foto nur gegenüber vom Text. */
@media (min-width: 850px) {
	.lb-reveal--fit-half.lb-reveal--text-left .lb-reveal__frame { left: 50%; width: 50%; }
	.lb-reveal--fit-half.lb-reveal--text-right .lb-reveal__frame { left: 0; right: auto; width: 50%; }
	.lb-reveal--fit-half .lb-reveal__fade { display: none; }
}

.lb-reveal__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 120px;
	padding-bottom: 120px;
}

.lb-reveal__content {
	width: 34%;
	margin-left: var(--lb-r-offset, 8%);
}

.lb-reveal--text-right .lb-reveal__content {
	margin-left: auto;
	margin-right: var(--lb-r-offset, 8%);
}

.lb-reveal__content > :last-child,
.lb-reveal__content .text > :last-child { margin-bottom: 0; }

.lb-reveal--light { color: #fff; }

/* Handy */
@media (max-width: 549px) {
	.lb-reveal__content { width: 58%; margin-left: 0; }
	.lb-reveal--text-right .lb-reveal__content { margin-right: 0; }

	.lb-reveal--m-scroll .lb-reveal__frame,
	.lb-reveal--m-stack .lb-reveal__frame {
		position: absolute;
		inset: 0;
		width: auto;
		height: auto;
		transform: none !important;
	}

	/* „Bild steht“ auf dem Handy, auch wenn der Desktop einen anderen Effekt nutzt. */
	.lb-reveal.lb-reveal--m-fixed .lb-reveal__frame {
		position: fixed;
		top: var(--lb-r-top);
		right: auto;
		bottom: auto;
		left: 0;
		width: 100%;
		height: calc(100vh - var(--lb-r-top));
		height: calc(100lvh - var(--lb-r-top));
		transform: none !important;
	}

	/* Gestapelt: Bild oben als eigener Block, Text darunter. */
	.lb-reveal--m-stack {
		display: block;
		min-height: 0;
		clip-path: none;
	}
	.lb-reveal--m-stack .lb-reveal__media {
		position: relative;
		z-index: 0;
		height: 70vh;
	}
	.lb-reveal--m-stack .lb-reveal__fade { display: none; }
	.lb-reveal--m-stack .lb-reveal__content { width: 100%; }
}

/* Bewegung reduzieren: Parallax aus. */
@media (prefers-reduced-motion: reduce) {
	.lb-reveal--parallax .lb-reveal__frame {
		transform: none !important;
		top: 0;
		bottom: 0;
	}
}

/* ------------------------------------------------------------------ */
/* Tourtermine [lb_tour]                                               */
/* ------------------------------------------------------------------ */

.lb-tour {
	color: var(--lb-t-color, var(--lb-text));
	font-family: var(--lb-font-body);
	font-size: 18px;
}

.lb-tour__list {
	column-count: 2;
	column-gap: 9%;
	column-rule: 2px solid var(--lb-t-divider, var(--lb-accent));
}

.lb-tour--cols-1 .lb-tour__list {
	column-count: 1;
	max-width: 620px;
	margin: 0 auto;
}

.lb-tour__list > * {
	break-inside: avoid;
}

.lb-tour__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 5.2em 6.6em;
	column-gap: .9em;
	align-items: baseline;
	padding: .12em 0;
	line-height: 1.55;
	break-inside: avoid;
}

.lb-tour__city {
	font-weight: 500;
	text-align: right;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.lb-tour__venue {
	display: block;
	font-size: .68em;
	font-weight: 400;
	line-height: 1.3;
	text-transform: none;
	opacity: .75;
}

.lb-tour__date {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.lb-tour__link,
.lb-tour__status {
	color: var(--lb-t-link, var(--lb-accent));
	font-weight: 500;
	text-transform: uppercase;
	white-space: nowrap;
}

.lb-tour__link:hover,
.lb-tour__link:focus-visible {
	color: var(--lb-t-link, var(--lb-accent));
	text-decoration: underline;
	text-underline-offset: .2em;
}

.lb-tour__note {
	display: block;
	font-size: .6em;
	letter-spacing: .06em;
	line-height: 1.2;
	text-transform: uppercase;
	opacity: .8;
}

.lb-tour__item.is-soldout .lb-tour__status,
.lb-tour__status--soon { opacity: .6; }

.lb-tour__item.is-cancelled .lb-tour__city,
.lb-tour__item.is-cancelled .lb-tour__date {
	text-decoration: line-through;
	opacity: .55;
}

.lb-tour__item.is-past { opacity: .4; }

.lb-tour.is-collapsed .lb-tour__item.is-beyond-limit { display: none; }

.lb-tour__more-wrap {
	margin-top: 2em;
	text-align: center;
}

.lb-tour__empty {
	text-align: center;
	opacity: .75;
}

@media (max-width: 849px) {
	.lb-tour__list { column-count: 1; column-rule: 0; }
	.lb-tour { font-size: 16px; }
}

@media (max-width: 549px) {
	.lb-tour { font-size: 14px; }
	.lb-tour__item { grid-template-columns: minmax(0, 1fr) 4.9em 6.3em; column-gap: .7em; }
	.lb-tour__status { font-size: .8em; }
}

/* ------------------------------------------------------------------ */
/* Sticky-Split [lb_split]                                             */
/* ------------------------------------------------------------------ */

.lb-split {
	display: grid;
	grid-template-columns: var(--lb-s-w, 40%) minmax(0, 1fr);
	background-color: var(--lb-s-bg, var(--lb-accent));
}

.lb-split--image-left {
	grid-template-columns: minmax(0, 1fr) var(--lb-s-w, 40%);
}

.lb-split--image-left .lb-split__panel { order: 2; }

.lb-split__panel {
	padding: 60px;
	background-color: var(--lb-s-bg, var(--lb-accent));
}

.lb-split--light { color: #fff; }
.lb-split--light .lb-split__content a:not(.button) { color: #fff; text-decoration: underline; }

.lb-split__media {
	position: relative;
	min-width: 0;
}

.lb-split__sticky {
	position: relative;
	height: 100%;
}

.lb-split--sticky .lb-split__sticky {
	position: sticky;
	top: var(--lb-header-h, 0px);
	height: calc(100vh - var(--lb-header-h, 0px));
	max-height: 100%;
}

.lb-split__sticky picture,
.lb-split__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--lb-s-pos, 50% 50%);
}

@media (max-width: 849px) {
	.lb-split,
	.lb-split--image-left { grid-template-columns: minmax(0, 1fr); }
	.lb-split__media { order: -1; }
	.lb-split--image-left .lb-split__panel { order: 0; }
	.lb-split .lb-split__sticky,
	.lb-split--sticky .lb-split__sticky {
		position: relative;
		top: 0;
		height: var(--lb-s-mh, 60vh);
		max-height: none;
	}
}

/* ------------------------------------------------------------------ */
/* Logo-Leiste [lb_logos]                                              */
/* ------------------------------------------------------------------ */

.lb-logos {
	--lb-l-h: 36px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: calc(var(--lb-l-gap, 40px) * .6) var(--lb-l-gap, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lb-logos--left { justify-content: flex-start; }
.lb-logos--between { justify-content: space-between; }

.lb-logos .lb-logos__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lb-logos__img {
	display: block;
	width: auto;
	max-width: 180px;
	height: var(--lb-l-h);
	object-fit: contain;
	opacity: var(--lb-l-opacity, .7);
	transition: opacity .3s, filter .3s;
}

.lb-logos--gray .lb-logos__img { filter: grayscale(1); }

.lb-logos__item:hover .lb-logos__img {
	filter: none;
	opacity: 1;
}

.lb-logos .lb-placeholder { min-height: 60px; min-width: 240px; }

/* ------------------------------------------------------------------ */
/* Medien-Karte [lb_media_card]                                        */
/* ------------------------------------------------------------------ */

.lb-media-card {
	margin: 0 0 30px;
	text-align: center;
}

.lb-media-card__link {
	display: block;
	color: inherit;
}

.lb-media-card__frame {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: rgba(0, 0, 0, .08);
}

.lb-media-card--4-3 .lb-media-card__frame { aspect-ratio: 4 / 3; }
.lb-media-card--1-1 .lb-media-card__frame { aspect-ratio: 1; }
.lb-media-card--4-5 .lb-media-card__frame { aspect-ratio: 4 / 5; }
.lb-media-card--3-4 .lb-media-card__frame { aspect-ratio: 3 / 4; }

.lb-media-card__frame .lb-media-card__img,
.lb-media-card__frame .lb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	transition: transform .6s ease;
}

.lb-media-card__link:hover .lb-media-card__img { transform: scale(1.04); }

.lb-media-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 62px;
	height: 62px;
	margin: -31px 0 0 -31px;
	border-radius: 50%;
	background: var(--lb-accent);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
	transition: transform .3s;
}

.lb-media-card__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-50%, -50%);
}

.lb-media-card__link:hover .lb-media-card__play { transform: scale(1.08); }

.lb-media-card__title {
	display: block;
	margin-top: .55em;
	color: var(--lb-m-color, var(--lb-accent));
	font-size: 15px;
	line-height: 1.4;
}

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

.lb-footer h4,
.lb-footer .lb-footer__title {
	margin-bottom: 1em;
	color: var(--lb-accent);
	font-family: var(--lb-font-display);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.lb-footer p,
.lb-footer li {
	font-size: 13px;
	line-height: 1.75;
}

.lb-footer a {
	color: var(--lb-accent);
	text-decoration: underline;
	text-underline-offset: .15em;
}

.lb-theme .absolute-footer.dark {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
}
