:root {
	--ftl-ink: #1f302b;
	--ftl-paper: #f7f3ed;
	--ftl-deep: #18323c;
	--ftl-gold: #cfa66a;
	--ftl-focus: #8b5f22;
}

/* Normale Links bleiben im Textfluss und navigieren mit einem Klick. */
[data-ftl-lift] {
	position: relative;
	transition: color 180ms ease, text-shadow 180ms ease, top 180ms ease;
}

[data-ftl-lift]:focus-visible {
	outline: 3px solid var(--ftl-focus);
	outline-offset: 4px;
	border-radius: 2px;
}

@media (hover: hover) and (pointer: fine) {
	[data-ftl-lift]:not(.elementor-button):hover,
	[data-ftl-lift]:not(.elementor-button):focus-visible {
		top: -1px;
		text-shadow: 0 5px 14px rgba(31, 48, 43, 0.2);
	}

	[data-ftl-lift].elementor-button:hover,
	[data-ftl-lift].elementor-button:focus-visible {
		transform: translateY(-2px);
		box-shadow: 0 10px 24px rgba(31, 48, 43, 0.18);
	}
}

.ftl-designed {
	display: block;
	max-width: 100%;
	padding: 28px;
	border: 1px solid rgba(207, 166, 106, 0.42);
	border-radius: 20px;
	background: var(--ftl-deep);
	color: #f7f3ed !important;
	text-decoration: none !important;
	box-shadow: 0 14px 35px -20px rgba(16, 37, 44, 0.44);
	box-sizing: border-box;
	transform-origin: center;
	transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease;
}

.ftl-designed:focus-visible {
	outline: 3px solid #e2c48a;
	outline-offset: 5px;
}

.ftl-field-title {
	display: block;
	font: 400 clamp(24px, 3vw, 30px)/1.25 Georgia, serif;
}

.ftl-field-copy {
	display: block;
	margin-top: 14px;
	color: #d4dedd;
	font: 400 17px/1.65 Arial, sans-serif;
}

.ftl-field-action {
	display: block;
	margin-top: 20px;
	color: #ead2a9;
	font: 700 15px/1.4 Arial, sans-serif;
}

@media (hover: hover) and (pointer: fine) {
	.ftl-designed:hover,
	.ftl-designed:focus-visible {
		transform: perspective(1000px) translateY(-4px) scale(1.025);
		box-shadow: 0 25px 45px -16px rgba(16, 37, 44, 0.4);
	}
}

.ftl-viewer {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	border: 0;
	background: transparent;
	overflow: hidden;
	box-sizing: border-box;
	color-scheme: dark;
}

.ftl-viewer:not([open]) {
	display: none;
}

.ftl-viewer[open] {
	display: grid;
	place-items: center;
}

.ftl-viewer::backdrop {
	background: rgba(13, 35, 45, 0.91);
	backdrop-filter: blur(8px);
}

.ftl-viewer * {
	box-sizing: border-box;
}

.ftl-card {
	display: flex;
	flex-direction: column;
	width: min(700px, 100%);
	max-height: 100%;
	min-height: 0;
	overflow: hidden;
	border: 1px solid rgba(207, 166, 106, 0.45);
	border-radius: 24px;
	background: radial-gradient(ellipse at 20% 0, #2a4a53, #142c36 80%);
	color: #f7f3ed;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
	font: 400 16px/1.5 Arial, sans-serif;
}

.ftl-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px;
	flex-shrink: 0;
}

.ftl-heading {
	margin: 0;
	color: #e2cda5;
	font: 700 15px/1.4 Arial, sans-serif;
	letter-spacing: 0.02em;
}

.ftl-close {
	min-width: 48px;
	min-height: 48px;
	border: 1px solid rgba(226, 196, 138, 0.44);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	cursor: pointer;
	font: 400 26px/1 Arial, sans-serif;
}

.ftl-close:focus-visible,
.ftl-destination:focus-visible {
	outline: 3px solid #e2c48a;
	outline-offset: -4px;
}

.ftl-destination {
	display: block;
	min-height: 0;
	padding: 12px 30px 30px;
	overflow: auto;
	overscroll-behavior: contain;
	color: #f7f3ed !important;
	text-decoration: none !important;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.ftl-link-title {
	display: block;
	color: #fff;
	font: 400 var(--ftl-font, 36px)/1.22 Georgia, serif;
}

.ftl-link-copy {
	display: block;
	margin-top: 22px;
	color: #d4dedd;
	font: 400 20px/1.65 Arial, sans-serif;
	white-space: pre-line;
}

.ftl-link-copy:empty {
	display: none;
}

.ftl-footnote {
	flex-shrink: 0;
	margin: 0;
	padding: 17px 24px;
	border-top: 1px solid rgba(226, 196, 138, 0.2);
	color: #e2cda5;
	font-size: 15px;
}

@media (max-width: 480px) {
	.ftl-designed {
		padding: 22px;
	}

	.ftl-viewer {
		padding: 12px;
	}

	.ftl-card {
		border-radius: 18px;
	}

	.ftl-header {
		padding: 12px 16px;
	}

	.ftl-destination {
		padding: 8px 20px 22px;
	}

	.ftl-link-copy {
		margin-top: 18px;
		font-size: 18px;
	}

	.ftl-footnote {
		padding: 14px 18px;
	}
}

@media (max-height: 450px) {
	.ftl-header {
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.ftl-footnote {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.ftl-destination {
		padding-top: 4px;
		padding-bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-ftl-lift],
	.ftl-designed {
		transition: none !important;
	}

	[data-ftl-lift]:hover,
	[data-ftl-lift]:focus-visible,
	.ftl-designed:hover,
	.ftl-designed:focus-visible {
		top: auto !important;
		transform: none !important;
		text-shadow: none !important;
	}
}

@media (forced-colors: active) {
	.ftl-card,
	.ftl-designed {
		border: 2px solid CanvasText;
	}
}

