/* ============================================================
   Alle Funktionen Block
   ============================================================ */

.alle-funktionen-block {
	padding: 40px 0;
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
}

/* ------------------------------------------------------------
   Main layout: sidebar left + content right
   ------------------------------------------------------------ */
.af-layout {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.af-content {
	flex: 1;
	min-width: 0;
}

/* ------------------------------------------------------------
   Sidebar navigation (Figma node 141:4314)
   ------------------------------------------------------------ */
.af-sidebar-nav {
	flex-shrink: 0;
	width: 259px;
	position: sticky;
	top: 100px; /* adjust to site header height */
	margin-top: 0;
}

.af-sidebar-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 2px 22px 36px 0 rgba( 0, 0, 0, 0.11 );
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Individual nav item */
.af-nav-item {
	display: flex;
	align-items: center;
	gap: 15px;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-align: left;
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
	font-size: 15px;
	line-height: 21.6px;
	color: #003366;
	transition: opacity 0.15s;
}

.af-nav-item:hover {
	opacity: 0.75;
}

/* Icon wrapper + icon variants */
.af-nav-icon-wrap {
	flex-shrink: 0;
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: var( --af-icon-bg-default, #ebf4ff );
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.af-nav-item:hover .af-nav-icon-wrap,
.af-nav-item.active .af-nav-icon-wrap {
	background: var( --af-icon-bg-active, #023e84 );
}

.af-nav-icon {
	position: absolute;
	width: 20px;
	height: 20px;
	display: block;
}

.af-nav-icon-default {
	opacity: 1;
	transition: opacity 0.2s ease;
}

.af-nav-icon-active {
	opacity: 0;
	transition: opacity 0.2s ease;
}

.af-nav-item:hover .af-nav-icon-default,
.af-nav-item.active .af-nav-icon-default {
	opacity: 0;
}

.af-nav-item:hover .af-nav-icon-active,
.af-nav-item.active .af-nav-icon-active {
	opacity: 1;
}

/* Label */
.af-nav-label {
	font-weight: 400;
	color: #003366;
}

/* Active state: semibold label, icon stays as defined per item */
.af-nav-item.active .af-nav-label {
	font-weight: 600;
}

/* ------------------------------------------------------------
   Search bar
   ------------------------------------------------------------ */
.af-search-container {
	margin-bottom: 28px;
}

.af-search-wrap {
	position: relative;
}

.af-search-icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY( -50% );
	width: 18px;
	height: 18px;
	color: #6b7280;
	pointer-events: none;
}

.af-search-input {
	width: 100%;
	height: 62px;
	padding: 0 20px 0 42px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 16px;
	font-family: inherit;
	color: #374151;
	background: #fff;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.af-search-input:focus {
	border-color: #023e84;
	box-shadow: 0 0 0 3px rgba( 2, 62, 132, 0.12 );
}

.af-search-input::placeholder {
	color: #9ca3af;
}

/* ------------------------------------------------------------
   Feature card grid
   ------------------------------------------------------------ */
.af-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 24px;
}

@media ( max-width: 900px ) {
	.af-layout {
		flex-direction: column;
	}

	.af-sidebar-nav {
		width: 100%;
		position: static;
	}

	.af-sidebar-card {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
		padding: 16px;
	}

	.af-nav-item {
		width: auto;
		background: #f3f4f6;
		border-radius: 20px;
		padding: 6px 14px 6px 8px;
		gap: 8px;
	}

	.af-nav-icon-wrap {
		width: 28px;
		height: 28px;
		border-radius: 8px;
	}
}

@media ( max-width: 600px ) {
	.af-grid {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------
   Individual feature card
   ------------------------------------------------------------ */
.af-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 29px;
	display: flex;
	flex-direction: column;
	will-change: transform, opacity;
	transition: box-shadow 0.2s;
}

.af-card.af-card-enter {
	animation: af-card-enter 360ms cubic-bezier( 0.22, 1, 0.36, 1 ) both;
}

@keyframes af-card-enter {
	from {
		opacity: 0;
		transform: translateY( 14px ) scale( 0.985 );
	}
	to {
		opacity: 1;
		transform: translateY( 0 ) scale( 1 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.af-card.af-card-enter {
		animation: none;
	}
}

.af-card:hover {
	box-shadow: 0 4px 20px rgba( 0, 0, 0, 0.08 );
}

.af-card-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	background: #eef2fb;
	border-radius: 8px;
	flex-shrink: 0;
}

.af-card-icon img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.af-card-title {
	font-size: 18px;
	font-weight: 600;
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
	color: #111827;
	margin: 0 0 10px;
	line-height: 1.3;
}

.af-card-text {
	font-size: 15px;
	color: #6b7280;
	margin: 0;
	line-height: 1.55;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.af-card-text.expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.af-card-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	margin-top: 10px;
	border: none;
	background: none;
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: #5e7fa2;
	cursor: pointer;
	text-decoration: none;
}

.af-card-toggle:hover {
	color: #3f678f;
	text-decoration: underline;
}

.af-card-toggle.expanded {
	color: #3f678f;
}

.af-toggle-icon {
	transition: transform 0.2s ease;
	transform-origin: center;
}

.af-card-toggle.expanded .af-toggle-icon {
	transform: rotate( 180deg );
}

.af-card-footer {
	margin-top: 18px;
}

.af-card-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 15px;
	font-weight: 500;
	color: #023e84;
	text-decoration: none;
	transition: color 0.2s;
}

.af-card-link:hover {
	color: #012d5f;
	text-decoration: underline;
}

.af-card-link svg {
	flex-shrink: 0;
}

/* ------------------------------------------------------------
   Empty / no-results states
   ------------------------------------------------------------ */
.af-no-results,
.af-no-match {
	grid-column: 1 / -1;
	text-align: center;
	color: #6b7280;
	padding: 40px 20px;
	font-size: 16px;
}

.af-load-more {
	width: 100%;
	height: 46px;
	background: #eff4fa;
	border: none;
	border-radius: 10px;
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	color: #0a4a92;
	cursor: pointer;
	margin: 0 0 24px;
	transition: background-color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.af-load-more:hover {
	background: #e3edf8;
}

/* ------------------------------------------------------------
   Mini CTA bar (Figma node 46:2880 – dunkelblaue Bar mit orangem Rahmen)
   ------------------------------------------------------------ */
.af-mini-cta {
	background: #023e84;
	border-radius: 10px;
	height: 82px;
	margin-top: 24px;
	margin-bottom: 32px;
	padding: 0 29px;
	display: flex;
	align-items: center;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.af-mini-cta-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	width: 100%;
}

.af-mini-cta-left {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1;
	min-width: 0;
}

.af-mini-cta-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.af-mini-cta-text {
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	line-height: 1.13;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.af-mini-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fa7d19;
	color: #fff !important;
	padding: 0 24px;
	height: 45.6px;
	border-radius: 10px;
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
	font-size: 14.4px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: 0 4px 4px rgba( 0, 0, 0, 0.25 );
	transition: background 0.2s;
	margin-left: auto;
}

.af-mini-cta-btn:hover {
	background: #e66c0d;
	color: #fff;
}

@media ( max-width: 700px ) {
	.af-mini-cta {
		height: auto;
		padding: 20px;
	}

	.af-mini-cta-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.af-mini-cta-text {
		white-space: normal;
		font-size: 17px;
	}

	.af-mini-cta-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ------------------------------------------------------------
   Hero-CTA (optionaler Block über dem Block-Wrapper)
   ------------------------------------------------------------ */
.af-hero-cta {
	background: #fff;
	border-bottom: 1px solid #f0f2f5;
	padding: 56px 0 48px;
}

.af-hero-cta-inner {
	max-width: 680px;
}

.af-hero-headline {
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
	font-size: clamp( 1.7rem, 3vw, 2.3rem );
	font-weight: 800;
	line-height: 1.2;
	color: #003d7c;
	margin: 0 0 16px;
	letter-spacing: -0.01em;
}

.af-hero-subline {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #6b7280;
	margin: 0 0 28px;
}

.af-hero-btn {
	display: inline-block;
	background: #f5a623;
	color: #fff;
	padding: 12px 28px;
	border-radius: 100px;
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, box-shadow 0.2s;
}

.af-hero-btn:hover {
	background: #e6991c;
	color: #fff;
	box-shadow: 0 6px 20px rgba( 245, 166, 35, 0.25 );
}

/* ------------------------------------------------------------
   Section header (Headline + Subline über dem Karten-Grid)
   ------------------------------------------------------------ */
.af-section-header {
	margin-bottom: 28px;
}

.af-section-headline {
	font-family: 'Source Sans Pro', 'Source Sans 3', sans-serif;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.2;
	color: #003d7c;
	margin: 0 0 8px;
}

.af-section-subline {
	font-size: 0.95rem;
	color: #9ca3af;
	margin: 0;
	line-height: 1.6;
}

@media ( max-width: 768px ) {
	.af-hero-cta {
		padding: 36px 0 32px;
	}

	.af-section-headline {
		font-size: 28px;
	}
}

