/* Demo Videogalerie Vimeo */

.layer_viemo .page-navigator {
    margin-top: 30px;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1800px;
    margin: 20px auto;
}

.video-thumb {
    position: relative;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    text-shadow: 0 0 10px black;
}

.search-input-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
    max-width: 400px;
}

/* Tablet */
@media (max-width: 1400px) {
    .video-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
	
	.search-input-wrapper {
		width: 70%;
		max-width: 300px;
	}
}

/* Smartphone */
@media (max-width: 480px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }

	.search-input-wrapper {
		width: 100%;
	}	
}

.video-section {
    max-width: 1400px;
    margin: 60px auto;
    /* padding:0 24px; */
}

.video-search-box {
    max-width: 720px;
    margin: 6px auto 35px;
    text-align: center;
    padding: 20px;
    border-radius: 28px;
    border: 1px solid #d1d5db;
    background: linear-gradient(180deg, #f9f9f9, #e9e9e9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.video-search-box input.submit {
	margin-right: 0;
	margin-left: 10px;
}

.video-search-box h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #5f6062;
}

.video-search-box p {
    margin: 0 auto 24px;
    max-width: 620px;
    color: #4b5563;
    line-height: 1.6;
}

#videoSearch {
	width: 100%;
    max-width: 620px;
    padding: 10px 48px 11px 20px;
    border: 1px solid #a1a1a1;
    border-radius: 999px;
    outline: none;
    /* box-shadow:0 10px 30px rgba(0,0,0,.06); */
}

#videoSearch:focus {
    border-color: #cb5262;
    box-shadow: 0 0 0 4px rgb(203 82 98 / 11%);
}

.clear-search-btn {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #777;
	cursor: pointer;
	display: none; /* standardmäßig versteckt */
	padding: 0 4px;
}

.clear-search-btn:hover {
	color: #333;
}

@-moz-document url-prefix() {
	.video-search-box .formbutton.submit {
		position: relative;
		top: 1px;
	}
}

.search-count {
    margin-top: 14px;
    color: #6b7280;
    font-size: 15px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.video-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.video-promotion {
	border: 1px solid #cb5262;
}

.video-item.is-hidden {
    display: none;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    padding: 0;
    cursor: pointer;
    background: #000;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover img {
    transform: scale(1.08);
}

.play {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 58px;
    color: #fff;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.video-info {
    padding: 24px;
}

.video-category {
    display: inline-block;
    color: #cb5262;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.video-info h3 {
    margin: 0 0 4px;
    font-size: 1.6rem;
    color: #5f6062;
    line-height: 24px;
	
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

.video-info p {
	margin: 0;
	color: #6b7280;
	line-height: 1.6;
	
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
}

.text {
   -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2; 
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    margin-bottom: 2px;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #7a7f86;
    font-weight: 400;
}

.video-meta span {
    display: inline-flex;
    align-items: center;
}

.video-meta .separator {
    color: #b8bcc2;
    font-size: 0.8rem;
}

.video-duration,
.video-date {
    white-space: nowrap;
}

.no-results {
    display: none;
    text-align: center;
    margin: 36px 0 0;
    color: #6b7280;
    font-size: 1.05rem;
}

.no-results.active {
    display: block;
}

.vimeo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.vimeo-lightbox.active {
    display: flex;
}

.vimeo-lightbox .lightbox-content {
    width: min(1600px, 100%);
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.vimeo-lightbox iframe {
    width: 100%;
    height: 100%;
}

.close-x {
    position: absolute;
    top: 20px;
    right: 30px;
    border: none;
    background: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 100000;
}

.folder-bubbles {
	margin-top: 15px;
}

.folder-bubble {
	cursor: pointer;
    display: inline;
    background-color: white;
    color: #cb5262;
    font-size: 14px;
	font-weight: 600;
    border: 1px solid #cb5262;
    padding: 6px 18px 7px;
    border-radius: 27px;
    line-height: 44px;
    margin: 0 2px;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.folder-bubble:hover {
    background-color: #cb5262;
    color: white;
	transition: all 0.3s ease;
}

.folder-bubble.active {
    background-color: #cb5262;
    color: white;
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1000px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-search-box {
        padding: 28px 22px;
    }
}
