/**
 * AGIMAS Corporate page — /agimas/
 * Full page styles (hero + future screens). Critical CSS is inlined separately.
 */

body.page-template-page-agimas,
body.page-template-page-agimas-php {
	background: #fff;
	font-family: var(--ag-font) !important;
}

body.page-template-page-agimas #content,
body.page-template-page-agimas-php #content {
	margin: 0;
	padding: 0;
}

.ag-hero {
	position: relative;
	overflow: visible;
	padding: 80px 0 130px;
	background: #fff;
	font-family: var(--ag-font);
}

.ag-hero__video {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.ag-hero__video-el {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right center;
	opacity: 0.5;
}

.ag-hero__video::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 48%, rgba(255, 255, 255, 0.35) 100%);
	pointer-events: none;
}

.ag-hero > .ed-wrap {
	position: relative;
	z-index: 1;
}

.ag-hero__grid {
	display: grid;
	gap: 40px;
	align-items: center;
	grid-template-columns: 1fr;
}

.ag-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	max-width: none;
	min-width: 0;
	font-family: var(--ag-font);
}

.ag-hero__kicker {
	margin: 0;
}

.ag-hero__title {
	margin: 0;
	font-family: var(--ag-font);
	font-size: clamp(2rem, 5.5vw, 50px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--ag-text);
}

.ag-hero__title .accent {
	color: #7a90ad;
}

.ag-hero__lead {
	margin: 0;
	font-family: var(--ag-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--ag-text-2);
}

.ag-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
}

.ag-hero__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.ag-hero__actions .ed-btn {
	font-family: var(--ag-font);
}

.ag-hero__action-hint {
	margin: 0;
	padding-left: 0;
	text-align: center;
	font-family: var(--ag-font);
	font-size: 13px;
	line-height: 1.35;
	color: var(--ag-text-3);
}

.ag-hero__trust {
	margin: 10px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--ag-border);
}

.ag-hero__trust-label {
	margin: 0 0 12px;
	font-family: var(--ag-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ag-text-3);
}

.ag-hero__trust-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ag-hero__trust-list li {
	display: flex;
	align-items: stretch;
	flex: 1 1 160px;
	min-width: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--ag-radius-sm, 3px);
	background: #fff;
	box-shadow: 0 8px 20px rgba(7, 23, 77, 0.08);
	font-family: var(--ag-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ag-text-2);
}

.ag-hero__trust-list li > span:last-child {
	display: flex;
	align-items: center;
	padding: 14px 18px;
}

.ag-hero__trust-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	flex-shrink: 0;
	align-self: stretch;
	padding: 0 14px;
	color: var(--ag-primary);
	background: #e7f4fe;
}

.ag-hero__trust-ico svg {
	width: 26px;
	height: 26px;
}

.ag-hero__visual {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	min-height: 0;
}

.ag-hero__deco {
	position: absolute;
	left: -50px;
	bottom: -30px;
	z-index: 0;
	width: 96px;
	height: 96px;
	background-image: radial-gradient(var(--ag-primary) 1.6px, transparent 1.7px);
	background-size: 14px 14px;
	pointer-events: none;
}

.ag-hero__media {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	overflow: visible;
	border-radius: 5px;
	border-top-left-radius: 96px;
	background: transparent;
	box-shadow: none;
	aspect-ratio: 4 / 5;
	max-height: 420px;
}

.ag-hero__media > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: inherit;
	background: var(--ag-gray-10);
	box-shadow:
		0 18px 48px rgba(26, 33, 41, 0.12),
		0 4px 14px rgba(26, 151, 250, 0.1);
}

.ag-hero__trust--float {
	position: absolute;
	inset: 0;
	z-index: 2;
	margin: 0;
	padding: 0;
	border: 0;
	pointer-events: none;
}

.ag-hero__trust--float .ag-hero__trust-list {
	position: absolute;
	inset: 0;
	display: block;
	flex-wrap: unset;
	gap: 0;
}

.ag-hero__trust--float .ag-hero__trust-list li {
	position: absolute;
	flex: none;
	width: max-content;
	max-width: min(300px, 88%);
	min-height: 64px;
	pointer-events: auto;
	will-change: transform;
	animation: ag-plaque-float 5.5s ease-in-out infinite;
	box-shadow:
		0 12px 28px rgba(7, 23, 77, 0.16),
		0 2px 8px rgba(7, 23, 77, 0.08);
}

.ag-hero__trust-item--1 {
	top: 8%;
	right: -6%;
	animation-duration: 5.2s;
}

.ag-hero__trust-item--2 {
	top: calc(42% + 40px);
	left: -8%;
	animation-duration: 6s;
	animation-delay: 0.7s;
}

.ag-hero__trust-item--3 {
	bottom: 8%;
	right: 2%;
	animation-duration: 5.6s;
	animation-delay: 1.1s;
}

.ag-hero__trust-item--4 {
	bottom: -4%;
	left: 10%;
	animation-duration: 6.2s;
	animation-delay: 0.35s;
}

@keyframes ag-plaque-float {
	0%,
	100% {
		transform: translateY(0);
	}
	25% {
		transform: translateY(-8px);
	}
	75% {
		transform: translateY(8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ag-hero__trust--float .ag-hero__trust-list li {
		animation: none;
	}
}

@media (min-width: 900px) {
	.ag-hero {
		padding: 80px 0 130px;
	}

	.ag-hero__video {
		display: block;
	}

	.ag-hero__grid {
		grid-template-columns: minmax(0, 45%) minmax(0, 44%);
		column-gap: 11%;
		justify-content: space-between;
		align-items: center;
	}

	.ag-hero__content {
		padding-block: 0;
		justify-content: center;
	}

	.ag-hero__visual {
		margin-block: 0;
		height: auto;
		min-height: 0;
		box-sizing: border-box;
		overflow: visible;
	}

	.ag-hero__media {
		flex: 0 0 auto;
		width: 100%;
		height: 600px;
		max-height: 600px;
		aspect-ratio: auto;
		border-top-left-radius: 140px;
	}

	.ag-hero__deco {
		left: -50px;
		bottom: -30px;
	}
}

@media (max-width: 899px) {
	.ag-hero__action {
		width: 100%;
	}

	.ag-hero__actions .ed-btn {
		width: 100%;
		justify-content: center;
	}

	.ag-hero__media {
		max-width: 420px;
		width: 100%;
		margin-inline: auto;
		overflow: hidden;
	}

	.ag-hero__trust--float {
		position: static;
		inset: auto;
		margin-top: 14px;
		pointer-events: auto;
	}

	.ag-hero__trust--float .ag-hero__trust-list {
		position: static;
		inset: auto;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.ag-hero__trust--float .ag-hero__trust-list li,
	.ag-hero__trust-item--1,
	.ag-hero__trust-item--2,
	.ag-hero__trust-item--3,
	.ag-hero__trust-item--4 {
		position: static;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		width: 100%;
		max-width: 100%;
		animation: none;
		will-change: auto;
	}

	.ag-hero__deco {
		left: -16px;
		bottom: -16px;
		width: 72px;
		height: 72px;
	}
}

/* --------------------------------------------------------------------------
   Sektion 2 — Über AGIMAS (split 1:1, Editin-Farben)
   -------------------------------------------------------------------------- */
.ag-about {
	font-family: var(--ag-font);
	background: #fff;
}

.ag-about__grid {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 0;
}

.ag-about__copy {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 55% at 8% 12%, rgba(232, 245, 255, 0.22) 0%, transparent 58%),
		radial-gradient(ellipse 70% 50% at 96% 88%, rgba(7, 74, 122, 0.5) 0%, transparent 52%),
		linear-gradient(158deg, #5bb5fc 0%, var(--ag-primary) 38%, var(--ag-primary-dk) 72%, var(--ag-primary-xdk) 100%);
	color: #fff;
	isolation: isolate;
}

.ag-about__copy::before {
	content: '';
	position: absolute;
	top: -18%;
	right: -12%;
	z-index: 0;
	width: min(52%, 320px);
	aspect-ratio: 1;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.04);
	pointer-events: none;
}

.ag-about__copy::after {
	content: '';
	position: absolute;
	left: 8%;
	bottom: 12%;
	z-index: 0;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 68%);
	pointer-events: none;
}

.ag-about__glow {
	position: absolute;
	z-index: 0;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 245, 255, 0.28) 0%, transparent 70%);
	filter: blur(2px);
	pointer-events: none;
}

.ag-about__glow--a {
	top: 18%;
	left: -40px;
}

.ag-about__glow--b {
	right: 12%;
	bottom: 8%;
	width: 160px;
	height: 160px;
}

.ag-about__orbit {
	position: absolute;
	z-index: 0;
	border: 1px dashed rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	pointer-events: none;
}

.ag-about__orbit--sm {
	top: 42%;
	right: 18%;
	width: 72px;
	height: 72px;
}

.ag-about__orbit--lg {
	top: 8%;
	left: 38%;
	width: 180px;
	height: 180px;
	opacity: 0.7;
}

.ag-about__line {
	position: absolute;
	z-index: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 30%, rgba(255, 255, 255, 0.05) 100%);
	pointer-events: none;
}

.ag-about__line--1 { top: 22%; }
.ag-about__line--2 { top: 58%; opacity: 0.7; }

.ag-about__wave {
	position: absolute;
	left: -20%;
	right: -10%;
	bottom: -35%;
	height: 75%;
	z-index: 0;
	border-radius: 50% 50% 0 0;
	background: radial-gradient(ellipse at 50% 0%, rgba(7, 74, 122, 0.55) 0%, transparent 70%),
		linear-gradient(180deg, transparent 0%, var(--ag-primary-xdk) 100%);
	opacity: 0.85;
	pointer-events: none;
}

.ag-about__dots {
	position: absolute;
	top: 28px;
	right: 28px;
	z-index: 1;
	width: 72px;
	height: 48px;
	background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1.4px, transparent 1.5px);
	background-size: 12px 12px;
	pointer-events: none;
}

.ag-about__dots--alt {
	top: auto;
	right: auto;
	bottom: 72px;
	left: 18%;
	width: 56px;
	height: 80px;
	opacity: 0.7;
}

.ag-about__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	max-width: 560px;
	padding: 56px 28px;
	margin: 0;
	align-items: flex-start;
}

.ag-about__cta {
	margin-top: 6px;
	align-self: flex-start;
}

.ag-about__eyebrow.ed-kicker {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
}

.ag-about__title {
	margin: 0;
	font-family: var(--ag-font);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: #fff;
}

.ag-about__text {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
}

.ag-about__media {
	position: relative;
	min-height: 280px;
	background: var(--ag-gray-10);
	overflow: hidden;
}

.ag-about__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	object-position: center;
}

@media (min-width: 900px) {
	.ag-about__grid {
		grid-template-columns: 1fr 1fr;
		min-height: 560px;
	}

	.ag-about__inner {
		padding: 72px 56px 72px max(32px, calc((100vw - var(--ag-max)) / 2));
		max-width: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		box-sizing: border-box;
	}

	.ag-about__media {
		min-height: 100%;
	}

	.ag-about__media img {
		position: absolute;
		inset: 0;
		min-height: 100%;
		height: 100%;
	}

	.ag-about__dots {
		top: 36px;
		right: 40px;
		width: 84px;
		height: 56px;
	}

	.ag-about__dots--alt {
		bottom: 96px;
		left: 14%;
		width: 64px;
		height: 96px;
	}
}

@media (max-width: 899px) {
	.ag-about__media {
		min-height: 320px;
	}

	.ag-about__media img {
		min-height: 320px;
	}
}

/* --------------------------------------------------------------------------
   Sektion 3 — Die Köpfe (Team-Slider)
   -------------------------------------------------------------------------- */
.ag-team {
	padding: 72px 0 96px;
	background: var(--ag-gray-10);
	font-family: var(--ag-font);
}

.ag-team__head {
	max-width: 760px;
	margin: 0 auto 40px;
	text-align: center;
}

.ag-team__head .ed-kicker,
.ag-offers__head .ed-kicker,
.ag-projects__head .ed-kicker {
	margin: 0 0 10px;
}

.ag-team__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--ag-text);
}

.ag-team__lead {
	margin: 16px 0 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ag-text-2);
}

.ag-team-slider {
	position: relative;
	overflow: visible;
}

.ag-team-slider__viewport {
	overflow: hidden;
}

.ag-team-slider__track {
	display: flex;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.ag-team-slider__track.is-instant {
	transition: none;
}

.ag-team-slider__slide {
	flex: 0 0 100%;
	min-width: 100%;
	box-sizing: border-box;
	display: flex;
}

.ag-team-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding: 24px;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 12px 32px rgba(7, 23, 77, 0.06);
	width: 100%;
	height: 100%;
}

.ag-team-card__visual {
	position: relative;
	isolation: isolate;
}

.ag-team-card__dots {
	position: absolute;
	z-index: 0;
	top: -4px;
	right: -4px;
	width: 96px;
	height: 96px;
	background-image: radial-gradient(var(--ag-primary) 1.7px, transparent 1.8px);
	background-size: 14px 14px;
	pointer-events: none;
	opacity: 0.85;
}

.ag-team-card__photo {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: 5px;
	border-top-left-radius: 96px;
	background: var(--ag-gray-10);
	aspect-ratio: 1 / 1;
	max-width: 420px;
	margin: 0 auto;
}

.ag-team-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.ag-team-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.ag-team-card__kicker {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ag-primary);
}

.ag-team-card__name {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ag-text);
}

.ag-team-card__role {
	margin: -4px 0 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--ag-text-3);
}

.ag-team-card__lead,
.ag-team-card__skills-label,
.ag-team-card__stations-label {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ag-text-2);
}

.ag-team-card__stations-label {
	margin-top: 4px;
	font-weight: 700;
	color: var(--ag-text);
}

.ag-team-card__skills {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 8px 2px 12px;
	align-items: stretch;
	overflow: visible;
}

.ag-team-card__skills li {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 0 14px;
	align-items: start;
	padding: 16px;
	border: 0;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(7, 23, 77, 0.06);
	height: 100%;
	box-sizing: border-box;
	transition:
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-team-card__skills li:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px -8px rgba(7, 23, 77, 0.22);
}

.ag-team-card__skills h4 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ag-text);
}

.ag-team-card__skills p {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ag-text-2);
}

.ag-team-card__skill-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: var(--ag-radius-sm, 3px);
	background: #e7f4fe;
	color: var(--ag-primary);
}

.ag-team-card__skill-ico svg {
	width: 22px;
	height: 22px;
}

.ag-team-card__stations {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-team-card__stations li {
	position: relative;
	padding-left: 1.15em;
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ag-text-2);
}

.ag-team-card__stations li:last-child {
	margin-bottom: 0;
}

.ag-team-card__stations li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 1px;
	background: var(--ag-primary);
}

.ag-team-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--ag-border);
	border-radius: var(--ag-radius-sm, 3px);
	background: rgba(255, 255, 255, 0.2);
	color: var(--ag-primary);
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 8px 24px rgba(7, 23, 77, 0.1);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ag-team-slider__arrow--prev {
	left: -10px;
}

.ag-team-slider__arrow--next {
	right: -10px;
}

.ag-team-slider__arrow:hover {
	background: var(--ag-primary);
	border-color: var(--ag-primary);
	color: #fff;
}

.ag-team-slider__arrow svg {
	width: 20px;
	height: 20px;
}

@media (min-width: 900px) {
	.ag-team {
		padding: 96px 0 120px;
	}

	.ag-team-card {
		grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
		gap: 40px;
		padding: 32px;
		align-items: stretch;
	}

	.ag-team-card__photo {
		max-width: none;
		margin: 0;
		height: 100%;
		min-height: 420px;
		aspect-ratio: auto;
		border-top-left-radius: 140px;
	}

	.ag-team-card__dots {
		top: 0;
		right: 0;
		width: 110px;
		height: 110px;
	}

	.ag-team-card__skills {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 899px) {
	.ag-team-slider__arrow--prev {
		left: 4px;
	}

	.ag-team-slider__arrow--next {
		right: 4px;
	}
}

/* --------------------------------------------------------------------------
   Sektion 4 — Leistungen (DaisyUI-ähnliche Bildkarten)
   -------------------------------------------------------------------------- */
.ag-offers {
	padding: 72px 0 96px;
	background: #fff;
	font-family: var(--ag-font);
}

.ag-offers__head {
	max-width: 760px;
	margin: 0 auto 40px;
	text-align: center;
}

.ag-offers__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--ag-text);
}

.ag-offers__lead {
	margin: 16px 0 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ag-text-2);
}

.ag-offers__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	overflow: visible;
	padding-top: 14px;
	padding-bottom: 20px;
}

.ag-offer-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 48px 32px 36px;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 15px 48px -8px rgba(7, 23, 77, 0.14);
	height: 100%;
	isolation: isolate;
	transition:
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-offer-card:hover,
#content.is-reveal-ready .ag-offer-card[data-ag-reveal].is-revealed:hover {
	transform: translateY(-10px);
	box-shadow: 0 28px 64px -10px rgba(7, 23, 77, 0.24);
}

.ag-offer-card.is-active:not(:hover),
#content.is-reveal-ready .ag-offer-card[data-ag-reveal].is-revealed.is-active:not(:hover) {
	transform: translateY(0);
	box-shadow: 0 15px 48px -8px rgba(7, 23, 77, 0.14);
}

.ag-offer-card::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: -1;
	width: 100%;
	height: 80%;
	background: linear-gradient(90deg, var(--ag-primary) 0%, var(--ag-primary-dk) 100%);
	opacity: 0;
	visibility: hidden;
	transition: all 0.35s ease-in-out;
	pointer-events: none;
}

.ag-offer-card__hover-img {
	position: absolute;
	top: -8%;
	right: -8%;
	z-index: 0;
	width: min(78%, 320px);
	height: auto;
	max-height: 70%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	mix-blend-mode: soft-light;
	transform: scale(1);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.ag-offer-card__status {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	color: var(--ag-primary-xdk);
	font-size: 12px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.94);
	border-radius: var(--ag-radius-sm, 3px);
	box-shadow: 0 12px 32px rgba(7, 23, 77, 0.1);
	backdrop-filter: blur(8px);
	transition: background-color 0.35s ease, color 0.35s ease;
}

.ag-offer-card__status .ed-security__pulse {
	position: relative;
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	background: var(--ag-secondary);
	border-radius: 50%;
}

.ag-offer-card__status .ed-security__pulse::before,
.ag-offer-card__status .ed-security__pulse::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--ag-secondary);
	opacity: 0.55;
	animation: ag-pulse-ring 2.2s ease-out infinite;
}

.ag-offer-card__status .ed-security__pulse::after {
	animation-delay: 1.1s;
}

.ag-offer-card__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 36px;
	border-radius: var(--ag-radius-sm, 3px);
	background: var(--ag-primary-lt);
	color: var(--ag-primary);
	transition: background-color 0.35s ease, color 0.35s ease;
}

.ag-offer-card__icon svg {
	width: 28px;
	height: 28px;
	transition: filter 0.35s ease;
}

.ag-offer-card__title,
.ag-offer-card__text,
.ag-offer-card__tags {
	position: relative;
	z-index: 1;
	transition: color 0.35s ease;
}

.ag-offer-card__title {
	margin: 0 0 14px;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--ag-text);
}

.ag-offer-card__text {
	margin: 0 0 20px;
	flex: 1 1 auto;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ag-text-2);
}

.ag-offer-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	margin-top: auto;
}

.ag-offer-card__tags li {
	padding: 8px 14px;
	border-radius: var(--ag-radius-sm, 3px);
	background: #fff;
	color: var(--ag-text-2);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 8px 20px rgba(7, 23, 77, 0.08);
	transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.ag-offer-card.is-active::after,
.ag-offer-card:hover::after {
	opacity: 1;
	visibility: visible;
	height: 100%;
}

.ag-offer-card.is-active .ag-offer-card__hover-img,
.ag-offer-card:hover .ag-offer-card__hover-img {
	opacity: 0.85;
	transform: scale(1.08);
	mix-blend-mode: normal;
	filter: brightness(1.15);
}

.ag-offer-card.is-active .ag-offer-card__icon,
.ag-offer-card:hover .ag-offer-card__icon {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.ag-offer-card.is-active .ag-offer-card__title,
.ag-offer-card.is-active .ag-offer-card__text,
.ag-offer-card.is-active .ag-offer-card__tags li,
.ag-offer-card:hover .ag-offer-card__title,
.ag-offer-card:hover .ag-offer-card__text,
.ag-offer-card:hover .ag-offer-card__tags li {
	color: #fff;
}

.ag-offer-card.is-active .ag-offer-card__text,
.ag-offer-card:hover .ag-offer-card__text {
	opacity: 0.9;
}

.ag-offer-card.is-active .ag-offer-card__tags li,
.ag-offer-card:hover .ag-offer-card__tags li {
	background: rgba(255, 255, 255, 0.16);
	box-shadow: none;
}

.ag-offer-card.is-active .ag-offer-card__status,
.ag-offer-card:hover .ag-offer-card__status {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.ag-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 5px 10px;
	border-radius: var(--ag-radius-sm, 3px);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.ag-badge--solid {
	background: var(--ag-primary);
	color: #fff;
}

.ag-badge--accent {
	background: var(--ag-secondary);
	color: #fff;
	max-width: 100%;
}

.ag-badge--outline {
	background: transparent;
	color: var(--ag-text-2);
	border: 1px solid var(--ag-border);
}

.ag-badge--tag {
	padding: 8px 14px;
	background: #fff;
	color: var(--ag-text-2);
	border: 0;
	box-shadow: 0 8px 20px rgba(7, 23, 77, 0.08);
}

@media (min-width: 900px) {
	.ag-offers {
		padding: 96px 0 120px;
	}

	.ag-offers__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px;
		align-items: stretch;
	}

	.ag-offer-card {
		padding: 56px 36px 40px;
	}
}

@media (max-width: 400px) {
	.ag-offer-card {
		padding: 40px 24px 32px;
	}
}

/* --------------------------------------------------------------------------
   Sektion 5 — Projektbeispiele (Hover-Accordion)
   -------------------------------------------------------------------------- */
.ag-projects {
	padding: 72px 0 96px;
	background: var(--ag-gray-10);
	font-family: var(--ag-font);
}

.ag-projects__head {
	max-width: 760px;
	margin: 0 auto 40px;
	text-align: center;
}

.ag-projects__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--ag-text);
}

.ag-projects__lead {
	margin: 16px 0 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ag-text-2);
}

.ag-projects-strip {
	display: flex;
	align-items: stretch;
	gap: 14px;
}

.ag-project-card {
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	min-width: 96px;
	height: 550px;
	overflow: hidden;
	border-radius: 5px;
	background: var(--ag-primary-xdk);
	cursor: pointer;
	transition: flex 0.95s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: flex;
}

.ag-project-card.is-open {
	flex: 4.8 1 0;
}

.ag-project-card__media {
	position: absolute;
	inset: 0;
	margin: 0;
}

.ag-project-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease;
}

.ag-project-card__media::before {
	content: '';
	position: absolute;
	z-index: 1;
	inset: 0;
	background-image: linear-gradient(
		0deg,
		rgba(7, 74, 122, 0.95) 0%,
		rgba(7, 74, 122, 0.88) 28%,
		rgba(7, 74, 122, 0.18) 62%,
		rgba(7, 74, 122, 0.12) 100%
	);
	pointer-events: none;
}

.ag-project-card__collapsed {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 40px;
	transform: translateX(-50%) rotate(180deg);
	writing-mode: vertical-lr;
	text-orientation: mixed;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.ag-project-card__collapsed h3 {
	margin: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.ag-project-card__open {
	position: absolute;
	z-index: 2;
	left: 36px;
	right: 36px;
	bottom: 36px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition:
		opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.ag-project-card__title {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 2.2vw, 2rem);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}

.ag-project-card__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.86);
	max-width: 520px;
}

.ag-project-card__rule {
	width: 88%;
	max-width: 420px;
	height: 1px;
	margin: 14px 0 16px;
	background: rgba(255, 255, 255, 0.28);
}

.ag-project-card__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 2px;
}

.ag-project-card__tags span {
	padding: 4px 14px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 13px;
	color: #fff;
	line-height: 24px;
}

.ag-project-card__cta {
	position: static;
	z-index: 3;
	margin-top: 18px;
	min-height: 44px;
	padding: 0 18px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	pointer-events: none;
	transition:
		opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-project-card.is-open .ag-project-card__collapsed {
	opacity: 0;
	visibility: hidden;
}

.ag-project-card.is-open .ag-project-card__open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition-delay: 0.2s;
}

.ag-project-card.is-open .ag-project-card__cta {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition-delay: 0.28s;
}

.ag-project-card.is-open .ag-project-card__media img {
	transform: scale(1.04);
	transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
	.ag-projects {
		padding: 96px 0 120px;
	}
}

@media (max-width: 1024px) {
	.ag-projects-strip {
		flex-direction: column;
	}

	.ag-project-card,
	.ag-project-card.is-open,
	.ag-project-card:not(.is-open) {
		flex: 1 1 auto;
		width: 100%;
		max-width: none;
		height: 420px;
	}

	.ag-project-card__collapsed {
		display: none;
	}

	.ag-project-card__open,
	.ag-project-card__cta {
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
	}

	.ag-project-card__cta {
		transform: none;
	}
}

@media (max-width: 575px) {
	.ag-project-card,
	.ag-project-card.is-open {
		height: 380px;
	}

	.ag-project-card__open {
		left: 20px;
		right: 20px;
		bottom: 20px;
	}

	.ag-project-card__title {
		font-size: 1.25rem;
	}

	.ag-project-card__cta {
		top: 14px;
		right: 14px;
		padding: 0 14px;
		font-size: 13px;
	}
}

/* --------------------------------------------------------------------------
   Sektion 5 — Warum AGIMAS (Editin #datenschutz / ed-security)
   -------------------------------------------------------------------------- */
#warum.ag-why {
	position: relative;
	overflow: hidden;
	padding: 72px 0 96px;
	font-family: var(--ag-font);
	background:
		linear-gradient(90deg, rgba(246, 246, 246, 0.75) 1px, transparent 1px),
		linear-gradient(rgba(246, 246, 246, 0.75) 1px, transparent 1px),
		#fff;
	background-size: 40px 40px;
}

#warum .ed-kicker {
	margin: 0 0 14px;
}

#warum .ed-section__head {
	max-width: none;
	margin: 0;
}

#warum .ed-section__head h2 {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--ag-text);
	text-wrap: balance;
}

#warum .ed-security {
	display: grid;
	gap: 44px;
	align-items: stretch;
}

#warum .ed-security__visual {
	position: relative;
	max-width: 480px;
	width: 100%;
	margin-inline: auto;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: var(--ag-shadow-md);
	align-self: stretch;
	min-height: 320px;
	background: var(--ag-gray-10);
}

#warum .ed-security__visual img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
}

#warum .ed-security__content {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
}

#warum .ed-security__head {
	text-align: left;
}

#warum .ed-security__head .ed-sub {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	margin-top: 20px;
}

#warum .ed-security__status {
	position: absolute;
	top: 15px;
	left: 15px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	color: var(--ag-primary-xdk);
	font-size: 12px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.94);
	border-radius: var(--ag-radius-sm, 3px);
	box-shadow: var(--ag-shadow-md);
	backdrop-filter: blur(8px);
}

#warum .ed-security__pulse {
	position: relative;
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	background: var(--ag-secondary);
	border-radius: 50%;
}

#warum .ed-security__pulse::before,
#warum .ed-security__pulse::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--ag-secondary);
	opacity: 0.55;
	animation: ag-pulse-ring 2.2s ease-out infinite;
}

#warum .ed-security__pulse::after {
	animation-delay: 1.1s;
}

@keyframes ag-pulse-ring {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	100% {
		transform: scale(3.2);
		opacity: 0;
	}
}

#warum .ed-models {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 0;
	align-content: start;
	align-items: stretch;
}

#warum .ed-model {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 0 14px;
	align-items: start;
	align-content: start;
	box-sizing: border-box;
	padding: 14px 16px;
	overflow: hidden;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 12px 32px rgba(7, 23, 77, 0.06);
	transition:
		transform 0.6s cubic-bezier(0.33, 1, 0.68, 1),
		background-color 0.6s ease,
		box-shadow 0.6s ease,
		color 0.6s ease;
}

#warum .ed-model:hover {
	transform: translateY(-4px);
	background: var(--ag-primary);
	box-shadow: 0 18px 38px rgba(26, 151, 250, 0.28);
	color: #fff;
}

#warum .ed-model .ed-feature__icon {
	grid-row: 1 / span 2;
	align-self: start;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0;
	border-radius: 5px;
	background: var(--ag-primary-lt);
	color: var(--ag-primary);
	transition:
		background-color 0.6s ease,
		color 0.6s ease;
}

#warum .ed-model .ed-feature__icon .ed-icon {
	width: 28px;
	height: 28px;
	fill: none;
	color: inherit;
}

#warum .ed-model h4 {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ag-text);
	transition: color 0.6s ease;
}

#warum .ed-model p {
	grid-column: 2;
	margin: 0;
	padding-bottom: 4px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--ag-text-2);
	transition: color 0.6s ease;
}

#warum .ed-model__index {
	position: absolute;
	right: 10px;
	bottom: 8px;
	color: var(--ag-text-3);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	transition: color 0.6s ease;
}

#warum .ed-model:hover h4,
#warum .ed-model:hover p,
#warum .ed-model:hover .ed-model__index {
	color: #fff;
}

#warum .ed-model:hover .ed-feature__icon {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

#warum .ed-model--featured {
	background: var(--ag-primary);
	color: #fff;
	box-shadow: 0 12px 32px rgba(26, 151, 250, 0.22);
}

#warum .ed-model--featured .ed-model__index {
	color: rgba(255, 255, 255, 0.8);
}

#warum .ed-model--featured .ed-badge {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	margin: 0;
	padding: 8px 14px;
	border-radius: 0 0 0 5px;
	background: #fff;
	color: var(--ag-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	width: auto;
	transition: background-color 0.6s ease, color 0.6s ease;
}

#warum .ed-model--featured .ed-feature__icon {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

#warum .ed-model--featured h4,
#warum .ed-model--featured p {
	color: #fff;
}

#warum .ed-model--featured:hover {
	background: #fff;
	color: var(--ag-text);
}

#warum .ed-model--featured:hover h4 {
	color: var(--ag-text);
}

#warum .ed-model--featured:hover p,
#warum .ed-model--featured:hover .ed-model__index {
	color: var(--ag-text-2);
}

#warum .ed-model--featured:hover .ed-feature__icon {
	background: var(--ag-primary-lt);
	color: var(--ag-primary);
}

#warum .ed-model--featured:hover .ed-badge {
	background: var(--ag-primary);
	color: #fff;
}

@media (min-width: 900px) {
	#warum.ag-why {
		padding: 96px 0 120px;
	}

	#warum .ed-security {
		grid-template-columns: 1fr 1fr;
		gap: 76px;
		align-items: stretch;
	}

	#warum .ed-security__visual {
		max-width: none;
		width: 100%;
		margin-inline: 0;
		min-height: 100%;
	}

	#warum .ed-security__visual img {
		min-height: 100%;
		height: 100%;
		object-fit: cover;
	}
}

@media (max-width: 599px) {
	#warum .ed-model {
		grid-template-columns: 48px 1fr;
		padding: 12px;
		gap: 0 10px;
	}

	#warum .ed-model .ed-feature__icon {
		width: 48px;
		height: 48px;
	}

	#warum .ed-model .ed-feature__icon .ed-icon {
		width: 24px;
		height: 24px;
	}

	#warum .ed-model h4 {
		font-size: 16px;
	}

	#warum .ed-model p {
		font-size: 16px;
	}
}

/* --------------------------------------------------------------------------
   Sektion 7 — Kontakt / Signup (Fluent Forms id=1)
   -------------------------------------------------------------------------- */
#kontakt.ag-signup {
	font-family: var(--ag-font);
}

#kontakt .ag-signup__form-wrap {
	width: 100%;
	max-width: 36rem;
}

#kontakt .ag-signup__card {
	margin-top: 0;
	gap: 16px;
	padding: 28px 24px;
	background: #E1EFFF;
	border-radius: 5px;
	box-shadow: 0 12px 32px rgba(7, 23, 77, 0.08);
	color: var(--ag-text);
}

#kontakt .ag-signup__card .ag-signup__note {
	margin: 6px 0 0;
	text-align: center;
	font-size: 13px;
	line-height: 1.4;
	color: var(--ag-text-3);
}

#kontakt .ag-signup__card h3 {
	margin: 0 0 8px;
	text-align: center;
	color: var(--ag-text);
	font-size: 20px;
	font-weight: 700;
}

#kontakt .ag-signup__card .fluentform,
#kontakt .ag-signup__card .frm-fluent-form fieldset {
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-t-container,
#kontakt .ag-signup__card .frm-fluent-form .ff-el-group {
	margin-bottom: 14px;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-t-container:last-child,
#kontakt .ag-signup__card .frm-fluent-form .ff-el-group:last-child {
	margin-bottom: 0;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-t-container {
	gap: 12px !important;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-t-cell {
	padding: 0 !important;
	box-sizing: border-box;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-el-form-hide_label .ff-el-input--label {
	display: none !important;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-el-input--label label {
	display: block;
	font-family: var(--ag-font);
	font-size: 13px;
	font-weight: 600;
	color: var(--ag-text-2);
	margin-bottom: 6px;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-el-form-control {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1.5px solid var(--ag-border);
	border-radius: var(--ag-radius);
	font-family: var(--ag-font);
	font-size: 16px;
	font-weight: 400;
	color: var(--ag-text);
	background: #fff;
	box-sizing: border-box;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-el-form-control::placeholder {
	color: #9ca3af;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-el-form-control:focus {
	border-color: var(--ag-primary-md);
	box-shadow: 0 0 0 3px rgba(91, 181, 252, 0.25);
	outline: none;
}

#kontakt .ag-signup__card .frm-fluent-form textarea.ff-el-form-control {
	min-height: 100px;
	resize: vertical;
}

#kontakt .ag-signup__card .frm-fluent-form select.ff-el-form-control {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%231a2129' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

#kontakt .ag-signup__card .frm-fluent-form .ff_input-group {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
}

#kontakt .ag-signup__card .frm-fluent-form .ff_input-group-prepend {
	display: flex !important;
	align-items: center;
	flex-shrink: 0;
}

#kontakt .ag-signup__card .frm-fluent-form .ff_input-group-text {
	padding: 12px 14px;
	font-family: var(--ag-font);
	font-size: 16px;
	color: var(--ag-text-2);
	background: var(--ag-gray-10);
	border: 1.5px solid var(--ag-border);
	border-right: none;
	border-radius: var(--ag-radius) 0 0 var(--ag-radius);
	white-space: nowrap;
	line-height: 1.2;
}

#kontakt .ag-signup__card .frm-fluent-form .ff_input-group .ff-el-form-control {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	border-radius: 0 var(--ag-radius) var(--ag-radius) 0;
}

#kontakt .ag-signup__card .frm-fluent-form .ed-gdpr-block {
	margin-top: 2px;
}

#kontakt .ag-signup__card .frm-fluent-form .ed-gdpr-block .ff-el-form-check {
	display: block;
}

#kontakt .ag-signup__card .frm-fluent-form .ed-gdpr-block label.ff_tc_label,
#kontakt .ag-signup__card .frm-fluent-form .ed-gdpr-block .ff-el-form-check-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: var(--ag-font);
	font-size: 13px;
	line-height: 1.45;
	color: var(--ag-text-2);
	cursor: pointer;
}

#kontakt .ag-signup__card .frm-fluent-form .ed-gdpr-block .ff_tc_checkbox,
#kontakt .ag-signup__card .frm-fluent-form .ed-gdpr-block .ff-el-form-check-input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: var(--ag-primary);
}

#kontakt .ag-signup__card .frm-fluent-form .ed-gdpr-block .ff_t_c {
	display: inline;
}

#kontakt .ag-signup__card .frm-fluent-form .ed-gdpr-block .ff_t_c a {
	color: var(--ag-primary);
	text-decoration: underline;
}

#kontakt .ag-signup__card .frm-fluent-form .ed-container-button-senden-block-form {
	margin-top: 4px;
}

#kontakt .ag-signup__card .frm-fluent-form .ed-button-senden-block-form,
#kontakt .ag-signup__card .frm-fluent-form .ff-btn-submit.ed-button-senden-block-form,
#kontakt .ag-signup__card .frm-fluent-form .ff-btn-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0 24px;
	border: 1.5px solid var(--ag-primary) !important;
	border-radius: var(--ag-radius);
	background: var(--ag-primary) !important;
	background-image: none !important;
	color: #fff !important;
	font-family: var(--ag-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	box-shadow: var(--ag-shadow-sm) !important;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-btn-submit:hover {
	background: var(--ag-primary-xdk) !important;
	border-color: var(--ag-primary-xdk) !important;
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(26, 151, 250, 0.38) !important;
}

#kontakt .ag-signup__card .frm-fluent-form .error {
	font-family: var(--ag-font);
	font-size: 12px;
	color: #e53e3e;
	margin-top: 4px;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-message-success,
#kontakt .ag-signup__card .frm-fluent-form .ff-t-response-message {
	padding: 14px 16px;
	border-radius: var(--ag-radius);
	background: #e8f5ee;
	color: #1e7e4a;
	font-family: var(--ag-font);
	font-size: 15px;
	line-height: 1.5;
}

#kontakt .ag-signup__card .frm-fluent-form .ff-el-group.ff_submit_btn_wrapper {
	margin-bottom: 0;
}

#kontakt.ag-signup .ag-signup__wrap {
	padding-top: 100px;
	padding-bottom: 100px;
}

#kontakt .ag-signup__alt {
	margin-top: 28px;
	padding-top: 0;
	border-top: 0;
	text-align: left;
	max-width: 42rem;
}

#kontakt .ag-signup__alt h4 {
	margin: 0 0 12px;
	color: var(--ag-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

#kontakt .ag-signup__quote {
	position: relative;
	margin: 20px 0 0;
	max-width: 42rem;
	padding: 28px 24px 22px 28px;
	border-radius: 5px;
	background:
		linear-gradient(135deg, rgba(232, 245, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 55%, #fff 100%);
	border: 0;
	box-shadow: 0 10px 28px rgba(7, 74, 122, 0.06);
	transition:
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#kontakt .ag-signup__quote:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(7, 74, 122, 0.12);
}

#kontakt .ag-signup__quote > svg {
	position: absolute;
	top: 16px;
	left: 18px;
	width: 28px;
	height: 28px;
	transform: none;
	opacity: 0.35;
	color: var(--ag-primary);
}

#kontakt .ag-signup__quote-body {
	position: relative;
	z-index: 1;
	padding-top: 20px;
}

#kontakt .ag-signup__quote-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	font-style: italic;
	color: var(--ag-text);
}

#kontakt .ag-signup__quote footer {
	margin-top: 14px;
}

#kontakt .ag-signup__cal {
	display: inline-flex;
	width: auto;
	max-width: 100%;
	justify-content: center;
	padding-left: 22px;
	padding-right: 22px;
}

/* Native Kontakt-Fallback (wenn Fluent Forms fehlt) */
#kontakt .ag-contact-fallback {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

#kontakt .ag-contact-fallback__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 600px) {
	#kontakt .ag-contact-fallback__row {
		grid-template-columns: 1fr 1fr;
	}
}

#kontakt .ag-contact-fallback input[type="text"],
#kontakt .ag-contact-fallback input[type="email"],
#kontakt .ag-contact-fallback input[type="tel"],
#kontakt .ag-contact-fallback textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1.5px solid var(--ag-border);
	border-radius: var(--ag-radius, 4px);
	font-family: var(--ag-font);
	font-size: 16px;
	color: var(--ag-text);
	background: #fff;
	box-sizing: border-box;
}

#kontakt .ag-contact-fallback textarea {
	min-height: 100px;
	resize: vertical;
}

#kontakt .ag-contact-fallback input:focus,
#kontakt .ag-contact-fallback textarea:focus {
	border-color: var(--ag-primary-md);
	box-shadow: 0 0 0 3px rgba(91, 181, 252, 0.25);
	outline: none;
}

#kontakt .ag-contact-fallback__gdpr {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ag-text-2);
}

#kontakt .ag-contact-fallback__gdpr input {
	margin-top: 2px;
	accent-color: var(--ag-primary);
}

#kontakt .ag-contact-fallback__gdpr a {
	color: var(--ag-primary);
}

#kontakt .ag-contact-fallback__success {
	margin: 0 0 12px;
	padding: 14px 16px;
	border-radius: var(--ag-radius, 4px);
	background: #e8f5ee;
	color: #1e7e4a;
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   Sektion 7 — Signup / CTA (Preline-Layout, AGIMAS-Tokens)
   -------------------------------------------------------------------------- */
#kontakt.ag-signup .ag-signup__form .peer:placeholder-shown:not(:focus) + label {
	transform: none;
	color: var(--ag-text);
}

#kontakt.ag-signup .ag-signup__form .peer:not(:placeholder-shown) + label,
#kontakt.ag-signup .ag-signup__form .peer:focus + label {
	transform: scale(0.9) translate(2px, -6px);
	color: var(--ag-text-3);
}

/* --------------------------------------------------------------------------
   Header — Kontakt: тёмный текст/иконка
   -------------------------------------------------------------------------- */
body.page-template-page-agimas .ed-nav__cta > a.ed-btn--soft,
body.page-template-page-agimas-php .ed-nav__cta > a.ed-btn--soft,
body.page-template-page-agimas .ed-nav__mobile > a.ed-btn--soft,
body.page-template-page-agimas-php .ed-nav__mobile > a.ed-btn--soft {
	color: var(--ag-text);
}

body.page-template-page-agimas .ed-nav__cta > a.ed-btn--soft .ed-btn__ico,
body.page-template-page-agimas-php .ed-nav__cta > a.ed-btn--soft .ed-btn__ico,
body.page-template-page-agimas .ed-nav__mobile > a.ed-btn--soft .ed-btn__ico,
body.page-template-page-agimas-php .ed-nav__mobile > a.ed-btn--soft .ed-btn__ico {
	color: inherit;
}

body.page-template-page-agimas .ed-nav__cta > a.ed-btn--soft:hover,
body.page-template-page-agimas-php .ed-nav__cta > a.ed-btn--soft:hover,
body.page-template-page-agimas .ed-nav__mobile > a.ed-btn--soft:hover,
body.page-template-page-agimas-php .ed-nav__mobile > a.ed-btn--soft:hover {
	color: #fff !important;
}

/* --------------------------------------------------------------------------
   Progressive reveal (как Editin)
   -------------------------------------------------------------------------- */
#content.is-reveal-ready [data-ag-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

#content.is-reveal-ready [data-ag-reveal].is-revealed {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	#content.is-reveal-ready [data-ag-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Базовый адаптив (планшет / телефон)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ag-hero {
		padding: 56px 0 88px;
	}

	.ag-team__head,
	.ag-offers__head,
	.ag-projects__head {
		text-align: left;
	}

	#kontakt .ag-signup__quote,
	#kontakt .ag-signup__alt {
		max-width: none;
	}
}

@media (max-width: 899px) {
	.ag-hero__title {
		font-size: clamp(1.85rem, 7vw, 2.35rem);
	}

	.ag-hero__trust-list {
		flex-direction: column;
	}

	.ag-hero__trust-list li {
		width: 100%;
	}

	.ag-about__inner {
		padding-inline: 20px;
	}

	.ag-team-slider__arrow {
		display: none;
	}

	#warum .ed-security {
		gap: 32px;
	}

	#kontakt.ag-signup .ed-wrap {
		padding-block: 48px;
	}
}

@media (max-width: 599px) {
	.ag-hero {
		padding: 40px 0 72px;
	}

	.ag-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ag-project-card,
	.ag-project-card.is-open,
	.ag-project-card:not(.is-open) {
		height: 360px;
	}

	.ag-project-card__open {
		left: 20px;
		right: 20px;
		bottom: 20px;
	}

	.ag-project-card__cta {
		min-height: 40px;
		padding: 0 14px;
		font-size: 13px;
	}

	#kontakt .ag-signup__card {
		padding: 16px;
	}
}
