/*
Theme Name: Ungarn-Portal Ansprechpartner Child
Theme URI: https://www.ungarn-portal.com/
Description: Separates GeneratePress-Child-Theme für den Custom Post Type „Ansprechpartner“ und die bestehenden ACF-Felder des Ungarn-Portals.
Author: Andreas Pichelmayer
Template: generatepress
Version: 2.12.0
Text Domain: ungarn-portal-ansprechpartner
*/

/* Die spezifischen Styles für Ansprechpartner liegen in assets/css/ansprechpartner.css. */

/* Ansprechpartner-Widget für die schmale rechte Seitenleiste. */
.upa-sidebar-directory {
	margin: 28px 0;
}

.upa-sidebar-directory__title {
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 1.3;
}

.upa-sidebar-directory__list {
	display: grid;
	gap: 12px;
}

.upa-sidebar-directory__item {
	margin: 0;
	border: 1px solid #e4e4e4;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.upa-sidebar-directory__link {
	display: block;
	padding: 10px;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease;
}

.upa-sidebar-directory__link:hover,
.upa-sidebar-directory__link:focus {
	color: inherit;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
	transform: translateY(-1px);
}

.upa-sidebar-directory__logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 78px;
	margin-bottom: 9px;
	padding: 7px;
	border-radius: 4px;
	background: #f7f7f7;
	box-sizing: border-box;
}

.upa-sidebar-directory__logo {
	display: block;
	max-width: 100%;
	width: auto;
	max-height: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.upa-sidebar-directory__content,
.upa-sidebar-directory__name,
.upa-sidebar-directory__description,
.upa-sidebar-directory__more {
	display: block;
}

.upa-sidebar-directory__name {
	font-size: 14px;
	line-height: 1.35;
}

.upa-sidebar-directory__description {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 4px;
	color: #666;
	font-size: 12px;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.upa-sidebar-directory__more {
	margin-top: 7px;
	color: #327153;
	font-size: 12px;
	font-weight: 700;
}

.upa-sidebar-directory__all {
	display: inline-block;
	margin-top: 13px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}


/* =========================================================
   VIDEOÜBERSICHT – UNGARN PORTAL
   Für WP YouTube Lyte
   Desktop/Tablet: 2 Videos pro Zeile
   Smartphone: 1 Video pro Zeile
   ========================================================= */

.video-category {
	margin: 0 0 4rem;
}

.video-category:first-child {
	margin-top: 1rem;
}

.video-category > h2 {
	margin: 0 0 1.75rem;
	padding: 0 0 0.8rem;
	border-bottom: 3px solid #2f5d43;
	color: #1f1f1f;
	font-size: clamp(1.55rem, 2.5vw, 2rem);
	line-height: 1.3;
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	width: 100%;
	align-items: stretch;
}

.video-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	padding: 1rem;
	border: 1px solid #dfe3de;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
	transform: translateY(-3px);
	border-color: rgba(47, 93, 67, 0.35);
	box-shadow: 0 9px 25px rgba(0, 0, 0, 0.1);
}

.video-card__player {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	border-radius: 8px;
	background-color: #000;
}

.video-card__player .lyte-wrapper,
.video-card__player .lL,
.upa-estatik-lyte .lyte-wrapper,
.upa-estatik-lyte .lL {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.video-card__player .lyMe,
.video-card__player .lyte,
.upa-estatik-lyte .lyMe,
.upa-estatik-lyte .lyte {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	overflow: hidden;
}

.video-card__player .lyMe iframe,
.video-card__player .lyte iframe,
.video-card__player .lyMe .pL,
.video-card__player .lyte .pL,
.upa-estatik-lyte .lyMe iframe,
.upa-estatik-lyte .lyte iframe,
.upa-estatik-lyte .lyMe .pL,
.upa-estatik-lyte .lyte .pL {
	position: absolute !important;
	top: 0;
	left: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 0;
}

.video-card__player .wp-block-embed,
.video-card__player .wp-block-embed__wrapper,
.video-card__player iframe {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.video-card h3 {
	margin: 1.1rem 0 0.55rem;
	color: #1f1f1f;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	line-height: 1.4;
}

.video-card p {
	margin: 0;
	color: #444;
	font-size: 0.95em;
	line-height: 1.65;
}

.video-card p a {
	color: #2f5d43;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.video-card p a:hover,
.video-card p a:focus {
	color: #8e1f2d;
}

.video-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin-top: auto;
	padding: 0.7rem 1.15rem;
	border-radius: 6px;
	background-color: #2f5d43;
	color: #fff !important;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-card p + .video-card__button {
	margin-top: 1.25rem;
}

.video-card__button:hover,
.video-card__button:focus {
	transform: translateY(-1px);
	background-color: #244a32;
	color: #fff !important;
}

/* WP YouTube Lyte in Estatik-Immobilien */
.es-property_section--video .es-property-field__label {
	display: none;
}

.es-property_section--video .es-property-field__value,
.upa-estatik-lyte {
	display: block;
	width: 100%;
	max-width: 100%;
}

.upa-estatik-lyte {
	overflow: hidden;
	border-radius: 10px;
	background: #000;
}

.upa-estatik-lyte > p {
	margin: 0;
}

/* Korrektur für WP YouTube Lyte auf Estatik-Immobilienseiten */
.upa-estatik-lyte .pL {
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: cover !important;
	cursor: pointer;
}

.upa-estatik-lyte .play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	width: 76px;
	height: 54px;
	transform: translate(-50%, -50%);
	border-radius: 14px;
	background: rgba(255, 0, 0, 0.92) !important;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.upa-estatik-lyte .play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
}

.upa-estatik-lyte:hover .play {
	background: #cc0000 !important;
}

@media (max-width: 900px) {
	.video-grid {
		gap: 1.5rem;
	}

	.video-card {
		padding: 0.85rem;
	}

	.video-card h3 {
		margin-top: 0.9rem;
	}
}

@media (max-width: 700px) {
	.video-category {
		margin-bottom: 3rem;
	}

	.video-category > h2 {
		margin-bottom: 1.25rem;
		font-size: 1.45rem;
	}

	.video-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.video-card {
		padding: 0.8rem;
		border-radius: 10px;
	}

	.video-card:hover {
		transform: none;
	}

	.video-card h3 {
		font-size: 1.2rem;
	}
}

@media (max-width: 400px) {
	.video-card {
		padding: 0.65rem;
	}

	.video-card h3 {
		font-size: 1.1rem;
	}
}
