/* Home-spezifische Stile */

/* Screens (Workflows) Grid */
.screens-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.screen-card {
	background: var(--surface, #fff);
	border-radius: 18px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

.screen-card:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
	cursor: pointer;
}

.screen-card__image {
	width: 100%;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	max-height: 130px;
	border-bottom: 1px solid #e5e7eb;
	transition: box-shadow 0.2s;
	position: relative;
}

/* Video-specific styles */
.screen-card__video {
	cursor: pointer;
}

.screen-card__video video {
	width: auto;
	max-width: 100%;
	height: 110px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.video-play-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	pointer-events: none;
	transition: transform 0.2s ease;
}

.screen-card:hover .video-play-overlay {
	transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.screen-card__image img {
	width: auto;
	max-width: 100%;
	height: 110px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	transition: transform 0.25s cubic-bezier(.4, 0, .2, 1), box-shadow 0.2s;
}

.screen-card:hover .screen-card__image img {
	transform: scale(1.07);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.screen-card__caption {
	padding: 1rem 1.25rem;
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--txt, #222);
	border-top: 1px solid #e5e7eb;
	background: var(--surface, #fff);
	text-align: left;
}

.screen-card__desc {
	padding: 0.5rem 1.25rem 1rem 1.25rem;
	font-size: 0.98rem;
	color: #555;
	background: var(--surface, #fff);
	border-bottom-left-radius: 18px;
	border-bottom-right-radius: 18px;
}

/* Image Modal (reduced subset; full styles in global) */
.img-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.img-modal[hidden] {
	display: none;
}

.img-modal-content {
	background: #fff;
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.img-modal-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url('../images/headerbackground.svg') center/cover no-repeat;
	opacity: 0.15;
	border-radius: 16px;
	pointer-events: none;
}

.img-modal-content img {
	max-width: 80vw;
	max-height: 70vh;
	border-radius: 10px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
	position: relative;
	z-index: 1;
}

.img-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: #fff;
	border: none;
	font-size: 2rem;
	color: #333;
	cursor: pointer;
	border-radius: 50%;
	width: 2.5rem;
	height: 2.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
	transition: background .2s;
	z-index: 2;
}

.img-modal-close:hover {
	background: #f3f4f6;
}

/* Features List Box */
.features-list-box {
	background: var(--surface, #fff);
	border: 2px solid color-mix(in srgb, var(--brand, #16a34a) 15%, transparent);
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 8px 32px color-mix(in srgb, var(--brand, #16a34a) 8%, transparent);
	width: 100%;
	margin: 0;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 0;
}

.feature-item:not(:last-child) {
	border-bottom: 1px solid color-mix(in srgb, var(--muted, #6b7280) 20%, transparent);
}

.feature-item img {
	flex-shrink: 0;
}

.feature-item span {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--txt, #222);
}

@media (max-width: 768px) {
	.features-list-box {
		padding: 1.5rem;
	}

	.feature-item {
		gap: 0.75rem;
		padding: 0.5rem 0;
	}

	.feature-item span {
		font-size: 1rem;
	}
}