/* ==========================================================================
   WPS Referenzen — frontend.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared
   -------------------------------------------------------------------------- */

.wps-ref-grid {
	display: grid;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wps-ref-btn {
	display: inline-block;
	padding: 0.55em 1.2em;

	border: 2px solid rgba(255, 155, 0);
	/* border: 2px solid var(--contrast-grey); */

	border-radius: 0;
	font-size: 0.88rem;
	font-weight: normal;


	/* THEME  */
	text-decoration: none;
	text-transform: uppercase;

	/* background-color: rgba(255, 155, 0, 1); */
	background-color: rgb(245, 245, 245);
	color: rgba(255, 155, 0);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.wps-ref-btn:hover,
.wps-ref-btn:focus {
	/* background-color: currentColor; */
	color: rgb(35,31,21);
	color: var(--orange-accent);

	/* THEME  */
	text-decoration: none;

	border-color: var(--contrast-grey);


}

/* --------------------------------------------------------------------------
   Logo grid  [wps_referenzen_logo]
   -------------------------------------------------------------------------- */

#wps-referenzen-logo {
	margin-block: 2rem;
}

.wps-ref-grid--logo {
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	column-gap: 5px;
	row-gap: 5px;
}

.wps-ref-tile--logo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--contrast-grey);
	/* border: 1px solid #e5e5e5; */
	border-radius: 0;
	/* min-height: 120px; */
	min-height: 240px;
}

.wps-ref-tile--logo img {
	max-width: 100%;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.wps-ref-tile__icons {
	position: absolute;
	display: flex;
	/* gap: 0.4rem; */
	gap: 0.5rem;

	/*
	bottom: 0.5rem;
	right: 0.5rem;
	*/

	bottom: 0.5rem;
	left: center;

}

.wps-ref-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 5px;
	padding:0.5rem;
	/* background-color: rgba(255,255,255,0.5); */
	/* background-color: rgba(0,0,0,0.05); */
	background-color: rgba(255, 155, 0, 0.1);
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s, box-shadow 0.2s;

	/* Box shadow */
	box-shadow: 1px 1px 6px 0 rgba(112, 112, 112, 0.5);

}

.wps-ref-icon:hover,
.wps-ref-icon:focus {
	background-color: rgba(255, 155, 0, 0.4);

	/* Box shadow - Orange */
	box-shadow: 1px 1px 6px 0 rgba(255, 155, 0.5);
}

/*
.wps-ref-icon svg {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
}
*/


/* --------------------------------------------------------------------------
   Video grid  [wps_referenzen_video]
   -------------------------------------------------------------------------- */

#wps-referenzen-video {
	margin-block: 2rem;
}

.wps-ref-grid--video {
	grid-template-columns: repeat( auto-fill, minmax( 450px, 1fr ) );
	column-gap: 50px;
	row-gap: 50px;
}

.wps-ref-tile--video {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--contrast-grey);
	/* border: 1px solid #e5e5e5; */
	border-radius: 0;
	overflow: hidden;

	transition: border-color 0.2s, box-shadow 0.5s;

	/* Box shadow */
	box-shadow: 3px 3px 15px 0 rgba(112, 112, 112, 0.5);

	padding-top: 1.5rem;
	padding-left: 1rem;
	padding-right: 1rem;
	padding-bottom: 1rem;

}


.wps-ref-tile--video:hover,
.wps-ref-tile--video:focus {
	/* Box shadow - Orange */
	box-shadow: 3px 3px 15px 0 rgba(255, 155, 0.5);
	border-color:  rgba(255, 155, 0.5);
}





.wps-ref-tile__video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	object-fit: contain;
}

.wps-ref-tile__info {
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;

    align-items: center;      /* vertical centering */
    justify-content: center;  /* horizontal centering */
}

.wps-ref-tile__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.wps-ref-tile__ort {
	margin: 0;
	font-size: 0.9rem;
	color: #666;
}

/* --------------------------------------------------------------------------
   PDF card grid  [wps_referenzen_pdf]
   -------------------------------------------------------------------------- */

#wps-referenzen-pdf {
	margin-block: 2rem;
	/* outline: 5px dashed lightcoral; */
}

.wps-ref-grid--pdf {
	grid-template-columns: repeat( auto-fill, minmax( 450px, 1fr ) );
	column-gap: 100px;
	row-gap: 50px;
}


/* This is the card containing one Reference for a PDF */
.wps-ref-card--pdf {

	display: flex;
	flex-direction: column;
	gap: 1rem;
	
	padding-top: 3rem;
	padding-bottom: 5rem;
	padding-left: 2rem;
	padding-right: 5rem;

	background: #fff;
	border: 1px solid var(--contrast-grey);
	/* border: 1px solid #e5e5e5; */
	border-radius: 0;

	transition: border-color 0.2s, box-shadow 0.5s;

	/* Box shadow */
	box-shadow: 3px 3px 15px 0 rgba(112, 112, 112, 0.5);
}


.wps-ref-card--pdf:hover, 
.wps-ref-card--pdf:focus {

	/* Box shadow - Orange */
	box-shadow: 3px 3px 15px 0 rgba(255, 155, 0.5);
	border-color:  rgba(255, 155, 0.5);
}


.wps-ref-card__logo {
	display: flex;

    align-items: center;      /* vertical centering */
    justify-content: center;  /* horizontal centering */

}


.wps-ref-card__logo img {
    height: 120px;        /* fixed height — the equalizer */
    width: auto;         /* width follows naturally */
    max-width: 280px;    /* prevent very wide logos from overflowing */
    object-fit: contain;
}



.wps-ref-card__excerpt 
{
	display: flex;


	/* Desktop */
	flex-direction: row; 

	/* Mobile */
	/* flex-direction: column;  */

	gap: 2rem;

    align-items: center;      /* vertical centering */
    justify-content: center;  /* horizontal centering */

}

/*
// -------------------------------------------------------------------
// Mobile
// -------------------------------------------------------------------
*/
@media (max-width: 1024px) 
{ 

	.wps-ref-card__excerpt 
	{
		/* Mobile */
		flex-direction: column; 

		gap: 0.25rem;

		padding-left: 2rem;
		padding-right: 2rem;

	}


}



/*
.wps-ref-card__excerpt_col1
{
	outline: 5px dashed hotpink;
}

.wps-ref-card__excerpt_col2
{
	outline: 5px dashed skyblue;
}
*/



.wps-ref-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;

	align-items: center;      /* vertical centering */
    justify-content: center;  /* horizontal centering */

}

.wps-ref-card__title {
	margin: 0;
	font-size: inherit; /* Use 19px body font size */
	/* font-size: 1rem; */
	font-weight: bold;
	line-height: 1.3;
}

.wps-ref-card__ort {
	margin: 0;
	font-size: 1rem;
	color: #666;
}

/* push button to bottom of card */
.wps-ref-card--pdf .wps-ref-btn 
{
	margin-top: auto;

	align-self: center;
	/* align-self: flex-start; */
}
