/*
 * Designvorgaben Leitfaden Kap. 13.1
 *   Hintergrund  dunkles Navy, Contentflächen leicht abgesetzt
 *   Akzent       Cyan für Kategorie, Link, Fokus, CTA - sparsam
 *   Karten       einheitlicher Radius, dünne Kontur, klarer Hover, kein schwerer Schatten
 *   Typografie   Inter bzw. Website-Schrift, klare Hierarchie, Body mind. 16px
 *   Animation    sehr dezent, respektiert prefers-reduced-motion
 *
 * Responsives Verhalten nach Kap. 2.4
 *   >= 1200px  3 Karten je Reihe, Top Story über 2 Spalten
 *   768-1199   2 Karten je Reihe, Filter als scrollbare Chips
 *   < 768      1 Karte je Reihe, grosse Touch-Ziele
 */

/* Tokens liegen auf :root, nicht auf .fais-kn - sonst fehlen sie ueberall dort,
   wo nur ein einzelnes Modul eingebunden ist (z. B. der Teaser-Shortcode in
   einer Theme-Seite), und die Farben fallen auf die Theme-Defaults zurueck. */
:root {
	--fais-navy: #071624;
	--fais-navy-soft: #0d2233;
	--fais-surface: #0f2839;
	--fais-line: rgba(0, 207, 232, 0.18);
	--fais-line-strong: rgba(0, 207, 232, 0.42);
	--fais-cyan: #00cfe8;
	--fais-cyan-ink: #071624;
	--fais-text: #e9f2f7;
	--fais-muted: #9db0c0;
	--fais-radius: 14px;
	--fais-radius-sm: 8px;
	--fais-gap: 28px;
	--fais-maxw: 1200px;
}

.fais-kn {
	background: var(--fais-navy);
	color: var(--fais-text);
	font-family: Inter, "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	margin: 0;
}

.fais-kn *,
.fais-kn *::before,
.fais-kn *::after {
	box-sizing: border-box;
}

.fais-kn img {
	max-width: 100%;
	height: auto;
}

.fais-kn a {
	color: var(--fais-cyan);
	text-decoration-color: rgba(0, 207, 232, 0.35);
	text-underline-offset: 3px;
}

.fais-kn a:hover {
	text-decoration-color: var(--fais-cyan);
}

/* Sichtbarer Fokus - Kap. 7.4 */
.fais-kn a:focus-visible,
.fais-kn button:focus-visible,
.fais-kn input:focus-visible,
.fais-kn [tabindex]:focus-visible {
	outline: 2px solid var(--fais-cyan);
	outline-offset: 3px;
	border-radius: 4px;
}

.fais-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--fais-cyan);
	color: var(--fais-cyan-ink);
	padding: 12px 18px;
	z-index: 100;
	font-weight: 600;
}

.fais-skip:focus {
	left: 12px;
	top: 12px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.fais-container {
	width: 100%;
	max-width: var(--fais-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

.fais-container--article {
	max-width: 820px;
}

/* ---------- Kopf und Fuss (nur im Standalone-Modus) ---------- */

.fais-site-header {
	border-bottom: 1px solid var(--fais-line);
	background: rgba(7, 22, 36, 0.92);
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: saturate(140%) blur(8px);
}

.fais-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.fais-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--fais-text);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.fais-brand__mark {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: var(--fais-cyan);
	box-shadow: 0 0 0 4px rgba(0, 207, 232, 0.16);
}

.fais-nav {
	display: flex;
	gap: 26px;
	font-size: 16px;
}

.fais-nav a {
	color: var(--fais-muted);
	text-decoration: none;
	padding: 6px 0;
}

.fais-nav a:hover,
.fais-nav a.is-current {
	color: var(--fais-text);
	box-shadow: inset 0 -2px 0 var(--fais-cyan);
}

.fais-site-footer {
	border-top: 1px solid var(--fais-line);
	margin-top: 80px;
	padding: 36px 0 56px;
	color: var(--fais-muted);
	font-size: 15px;
}

.fais-site-footer__note {
	margin: 6px 0 0;
	max-width: 62ch;
}

.fais-main {
	padding: 32px 0 72px;
}

/* ---------- Brotkrumen (Kap. 2.2) ---------- */

.fais-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	font-size: 14px;
	color: var(--fais-muted);
}

.fais-breadcrumb li + li::before {
	content: "›";
	margin-right: 8px;
	color: var(--fais-line-strong);
}

.fais-breadcrumb a {
	color: var(--fais-muted);
	text-decoration: none;
}

.fais-breadcrumb a:hover {
	color: var(--fais-cyan);
}

.fais-breadcrumb [aria-current] {
	color: var(--fais-text);
}

/* ---------- Hub-Kopf ---------- */

.fais-eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fais-cyan);
	font-weight: 600;
}

.fais-hub-head {
	margin-bottom: 36px;
}

.fais-hub-title {
	margin: 0 0 14px;
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	font-weight: 650;
}

.fais-hub-intro {
	margin: 0;
	max-width: 68ch;
	color: var(--fais-muted);
	font-size: 18px;
}

.fais-hub-facts {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
}

.fais-hub-facts li {
	border: 1px solid var(--fais-line);
	border-radius: var(--fais-radius-sm);
	background: var(--fais-navy-soft);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 15px;
}

.fais-hub-facts strong {
	color: var(--fais-text);
	font-weight: 600;
}

.fais-hub-facts span {
	color: var(--fais-muted);
}

/* ---------- Filterleiste (Kap. 2.2 / 2.4) ---------- */

.fais-filterbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0 24px;
	border-top: 1px solid var(--fais-line);
	border-bottom: 1px solid var(--fais-line);
	margin-bottom: 32px;
}

.fais-chips {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}

.fais-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--fais-line);
	border-radius: 999px;
	color: var(--fais-muted);
	text-decoration: none;
	font-size: 15px;
	white-space: nowrap;
	background: transparent;
	transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.fais-chip:hover {
	color: var(--fais-text);
	border-color: var(--fais-line-strong);
	background: var(--fais-navy-soft);
}

.fais-chip.is-active {
	color: var(--fais-cyan-ink);
	background: var(--fais-cyan);
	border-color: var(--fais-cyan);
	font-weight: 600;
}

.fais-search {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.fais-search input {
	min-height: 40px;
	padding: 0 14px;
	border-radius: var(--fais-radius-sm);
	border: 1px solid var(--fais-line);
	background: var(--fais-navy-soft);
	color: var(--fais-text);
	font-size: 15px;
	width: 200px;
}

.fais-search input::placeholder {
	color: var(--fais-muted);
}

.fais-search button {
	min-height: 40px;
	padding: 0 16px;
	border-radius: var(--fais-radius-sm);
	border: 1px solid var(--fais-line-strong);
	background: transparent;
	color: var(--fais-text);
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.fais-search button:hover {
	background: var(--fais-navy-soft);
}

.fais-result-note {
	margin: -12px 0 24px;
	color: var(--fais-muted);
	font-size: 15px;
}

/* ---------- Kartengitter (Kap. 2.3 / 2.4) ---------- */

/* auto-fill statt fester Spaltenzahl: ergibt bei 1200er Container von selbst
   3 / 2 / 1 Karten nach Kap. 2.4 und verhindert, dass Spalten so schmal werden,
   dass Überschriften wortweise umbrechen. */
.fais-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--fais-gap);
	align-items: stretch;
}

.fais-card__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.fais-card {
	display: flex;
	flex-direction: column;
	background: var(--fais-navy-soft);
	border: 1px solid var(--fais-line);
	border-radius: var(--fais-radius);
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.fais-card:hover {
	border-color: var(--fais-line-strong);
	transform: translateY(-2px);
}

/* Top Story über die volle Breite (Kap. 2.3). Ab Tablet liegt das Bild links
   neben dem Text - sonst entsteht bei voller Breite eine 16:9-Fläche von
   mehreren hundert Pixeln Höhe, die die Karte auseinanderreißt. */
.fais-card--top {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.fais-card--top {
		flex-direction: row;
		align-items: stretch;
	}

	.fais-card--top .fais-card__media {
		flex: 0 0 52%;
		aspect-ratio: auto; /* Höhe folgt der Textspalte */
		min-height: 340px;
	}

	.fais-card--top .fais-card__content {
		justify-content: center;
	}
}

.fais-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9; /* verhindert Layout Shift, Kap. 7.4 */
	background: linear-gradient(135deg, #0d2233 0%, #14384d 100%);
	overflow: hidden;
}

.fais-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fais-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(120% 120% at 15% 10%, rgba(0, 207, 232, 0.22) 0%, transparent 55%),
		linear-gradient(135deg, #0d2233 0%, #16394f 100%);
}

.fais-card__placeholder-label {
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(233, 242, 247, 0.72);
	border: 1px solid var(--fais-line);
	border-radius: 999px;
	padding: 6px 14px;
	background: rgba(7, 22, 36, 0.4);
}

.fais-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
}

.fais-badge--top {
	background: var(--fais-cyan);
	color: var(--fais-cyan-ink);
}

.fais-card__body {
	padding: 20px 20px 8px;
	flex: 1 1 auto;
}

.fais-card__category {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fais-card__category a {
	color: var(--fais-cyan);
	text-decoration: none;
}

.fais-card__title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 620;
	letter-spacing: -0.01em;
}

.fais-card__title a {
	color: var(--fais-text);
	text-decoration: none;
}

.fais-card__title a:hover {
	color: var(--fais-cyan);
}

.fais-card__text {
	margin: 0;
	color: var(--fais-muted);
	font-size: 15.5px;
	line-height: 1.6;
}

.fais-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 14px 20px 18px;
	font-size: 13.5px;
	color: var(--fais-muted);
	border-top: 1px solid rgba(0, 207, 232, 0.1);
	margin-top: 14px;
}

.fais-card__source {
	color: var(--fais-muted);
	max-width: 16ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fais-card__updated {
	color: var(--fais-cyan);
	opacity: 0.85;
}

.fais-card__cta {
	margin-left: auto;
	color: var(--fais-cyan);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.fais-card--top .fais-card__title {
	font-size: 28px;
}

.fais-card--top .fais-card__text {
	font-size: 17px;
	max-width: 70ch;
}

/* ---------- Pagination, Hinweise, Empty State ---------- */

.fais-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
	flex-wrap: wrap;
}

.fais-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--fais-line);
	border-radius: var(--fais-radius-sm);
	color: var(--fais-muted);
	text-decoration: none;
}

.fais-pagination .page-numbers:hover {
	color: var(--fais-text);
	border-color: var(--fais-line-strong);
}

.fais-pagination .page-numbers.current {
	background: var(--fais-cyan);
	border-color: var(--fais-cyan);
	color: var(--fais-cyan-ink);
	font-weight: 600;
}

.fais-issue-note {
	margin-top: 36px;
	text-align: center;
	color: var(--fais-muted);
}

.fais-empty {
	border: 1px dashed var(--fais-line-strong);
	border-radius: var(--fais-radius);
	padding: 48px 28px;
	text-align: center;
	background: var(--fais-navy-soft);
}

.fais-empty h2 {
	margin: 0 0 10px;
	font-size: 22px;
}

.fais-empty p {
	margin: 0 auto 20px;
	max-width: 58ch;
	color: var(--fais-muted);
}

/* ---------- Buttons ---------- */

.fais-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--fais-radius-sm);
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--fais-line-strong);
	color: var(--fais-text);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.fais-btn--primary {
	background: var(--fais-cyan);
	border-color: var(--fais-cyan);
	color: var(--fais-cyan-ink);
}

.fais-btn--primary:hover {
	background: #2ad9ee;
}

.fais-btn--ghost:hover {
	background: var(--fais-surface);
}

/* ---------- Detailseite (Kap. 3.1) ---------- */

.fais-article__head {
	margin-bottom: 28px;
}

.fais-article__category {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fais-article__category a {
	color: var(--fais-cyan);
	text-decoration: none;
}

.fais-article__title {
	margin: 0 0 18px;
	font-size: clamp(30px, 4.4vw, 42px);
	line-height: 1.16;
	letter-spacing: -0.02em;
	font-weight: 650;
}

.fais-article__dek {
	margin: 0 0 20px;
	font-size: 20px;
	line-height: 1.55;
	color: #c6d6e2;
	max-width: 62ch;
}

.fais-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 14.5px;
	color: var(--fais-muted);
	padding-top: 16px;
	border-top: 1px solid var(--fais-line);
}

.fais-article__author {
	color: var(--fais-text);
	font-weight: 600;
}

.fais-article__updated {
	color: var(--fais-cyan);
}

.fais-article__figure {
	margin: 0 0 32px;
}

.fais-article__figure img {
	width: 100%;
	border-radius: var(--fais-radius);
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.fais-article__figure figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--fais-muted);
}

.fais-correction {
	border-left: 3px solid var(--fais-cyan);
	background: var(--fais-navy-soft);
	padding: 14px 18px;
	border-radius: 0 var(--fais-radius-sm) var(--fais-radius-sm) 0;
	font-size: 15.5px;
	color: #c6d6e2;
}

.fais-article__body {
	font-size: 18px;
	line-height: 1.75;
}

.fais-article__body h2 {
	margin: 44px 0 14px;
	font-size: 27px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	font-weight: 640;
}

.fais-article__body h3 {
	margin: 32px 0 10px;
	font-size: 21px;
	font-weight: 620;
}

.fais-article__body p {
	margin: 0 0 18px;
	max-width: 68ch;
}

.fais-article__body ul,
.fais-article__body ol {
	margin: 0 0 22px;
	padding-left: 22px;
	max-width: 66ch;
}

.fais-article__body li {
	margin-bottom: 8px;
}

.fais-article__body blockquote {
	margin: 26px 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--fais-line-strong);
	color: #c6d6e2;
	font-style: normal;
}

.fais-article__body strong {
	color: #f2f8fb;
}

.fais-inline-cta {
	margin: 32px 0;
	padding: 16px 20px;
	border: 1px solid var(--fais-line);
	border-radius: var(--fais-radius-sm);
	background: var(--fais-navy-soft);
	font-size: 16px;
}

.fais-inline-cta span {
	color: var(--fais-muted);
	margin-right: 4px;
}

/* Quelle und Transparenz */

.fais-sources {
	margin-top: 48px;
	padding: 26px 26px 22px;
	border: 1px solid var(--fais-line);
	border-radius: var(--fais-radius);
	background: var(--fais-navy-soft);
}

.fais-sources h2 {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 640;
}

.fais-sources__label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fais-muted);
	margin-bottom: 4px;
}

.fais-sources__primary {
	margin: 0 0 18px;
	font-size: 16.5px;
}

.fais-sources__inst,
.fais-sources__date {
	display: inline-block;
	color: var(--fais-muted);
	font-size: 14.5px;
	margin-left: 8px;
}

.fais-sources__list {
	margin: 0 0 18px;
	padding-left: 20px;
	font-size: 16px;
}

.fais-sources__list li {
	margin-bottom: 6px;
}

.fais-sources__method {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 207, 232, 0.12);
	font-size: 14.5px;
	color: var(--fais-muted);
}

/* CTA-Block */

.fais-cta {
	margin-top: 32px;
	padding: 28px;
	border: 1px solid var(--fais-line-strong);
	border-radius: var(--fais-radius);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(0, 207, 232, 0.14) 0%, transparent 60%),
		var(--fais-navy-soft);
}

.fais-cta__kicker {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fais-cyan);
	font-weight: 600;
}

.fais-cta__title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 640;
}

.fais-cta__text {
	margin: 0 0 20px;
	color: var(--fais-muted);
	max-width: 60ch;
}

.fais-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

/* Verwandte Beiträge */

.fais-related {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--fais-line);
}

.fais-section-title {
	margin: 0 0 24px;
	font-size: 26px;
	font-weight: 640;
	letter-spacing: -0.01em;
}

.fais-grid--related {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ---------- Startseiten-Modul (Shortcode) ---------- */

.fais-teaser-module {
	background: var(--fais-navy);
	color: var(--fais-text);
	padding: 72px 0;
}

.fais-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.fais-section-intro {
	margin: 8px 0 0;
	color: var(--fais-muted);
	max-width: 62ch;
}

.fais-link-more {
	white-space: nowrap;
	font-weight: 600;
	text-decoration: none;
}

.fais-grid--teaser {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---------- Breakpoints (Kap. 2.4) ---------- */

@media (max-width: 1199px) {
	.fais-filterbar {
		flex-direction: column;
		align-items: stretch;
	}

	/* Filter als scrollbare Chip-Leiste */
	.fais-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.fais-search input {
		width: 100%;
	}

	.fais-search {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.fais-kn {
		font-size: 16px;
	}

	.fais-container {
		padding: 0 16px;
	}

	.fais-grid,
	.fais-grid--related,
	.fais-grid--teaser {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.fais-card--top .fais-card__title {
		font-size: 22px;
	}

	.fais-hub-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.fais-section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.fais-article__body {
		font-size: 17px;
	}

	.fais-sources,
	.fais-cta {
		padding: 20px;
	}

	/* Grosse Touch-Ziele */
	.fais-chip {
		min-height: 44px;
	}

	.fais-card__cta {
		margin-left: 0;
		width: 100%;
		padding-top: 4px;
	}
}

/* ---------- Bewegung sparsam (Kap. 13.1) ---------- */

@media (prefers-reduced-motion: reduce) {
	.fais-kn *,
	.fais-kn *::before,
	.fais-kn *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.fais-card:hover {
		transform: none;
	}
}

/* ---------- Hinweis der lokalen Testumgebung ---------- */

.fais-demo-bar {
	margin: 0;
	padding: 10px 24px;
	background: rgba(0, 207, 232, 0.1);
	border-bottom: 1px solid var(--fais-line);
	color: var(--fais-muted);
	font-size: 13.5px;
	text-align: center;
}
