/* TechCenter Blog-Raster
   Alle Karten in Petrol. Beitragsbilder werden immer gezeigt –
   die Farbe liegt nur unten als Verlauf darüber, damit der Text lesbar bleibt.
   Schriften kommen vom Theme (Salient). */

.tcbg {
	--tcbg-navy: #0a224d;
	--tcbg-teal: #56b1b4;
	--tcbg-accent: #5ac5d0;
	--tcbg-ease: cubic-bezier(.16, 1, .3, 1);
	container-type: inline-size;
	width: 100%;
}

.tcbg__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@container (min-width: 620px) { .tcbg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 940px) { .tcbg__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@supports not (container-type: inline-size) {
	@media (min-width: 690px) { .tcbg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
	@media (min-width: 1000px) { .tcbg__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
}

/* ---------- Karte ---------- */
.tcbg a.tcbg-card,
.tcbg a.tcbg-card:hover,
.tcbg a.tcbg-card:focus { text-decoration: none; border: 0; }
.tcbg a.tcbg-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 440px;
	padding: 32px;
	overflow: hidden;
	border-radius: 4px;
	transition: transform .4s var(--tcbg-ease), box-shadow .4s var(--tcbg-ease);
}
.tcbg a.tcbg-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(10, 34, 77, .45); }
.tcbg a.tcbg-card:focus-visible { outline: 3px solid var(--tcbg-accent); outline-offset: 3px; }
@media (min-width: 768px) { .tcbg a.tcbg-card { padding: 36px; } }

/* Farben */
.tcbg a.tcbg-card--navy { background: var(--tcbg-navy); color: #fff; }
.tcbg a.tcbg-card--teal { background: var(--tcbg-teal); color: var(--tcbg-navy); } /* Weiß wäre auf Petrol zu kontrastarm */

/* Beitragsbild: immer sichtbar, volle Deckkraft */
.tcbg .tcbg-card__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	opacity: 1 !important;
	visibility: visible !important;
	transition: transform 1s var(--tcbg-ease);
}
.tcbg a.tcbg-card:hover .tcbg-card__img { transform: scale(1.05); }
.tcbg-card__shade { position: absolute; inset: 0; z-index: -1; }
.tcbg-card--navy .tcbg-card__shade { background: linear-gradient(to top, #0a224d 0%, #0a224d 30%, rgba(10, 34, 77, .9) 50%, rgba(10, 34, 77, .35) 74%, rgba(10, 34, 77, 0) 100%); }
.tcbg-card--teal .tcbg-card__shade { background: linear-gradient(to top, #56b1b4 0%, #56b1b4 42%, rgba(86, 177, 180, .94) 58%, rgba(86, 177, 180, .4) 80%, rgba(86, 177, 180, 0) 100%); }

/* Karten ohne Bild: große, ruhige Grafik */
.tcbg-card__deco {
	position: absolute;
	top: -36px;
	right: -36px;
	z-index: -1;
	width: 220px;
	height: 220px;
	transition: transform 1.6s var(--tcbg-ease);
}
.tcbg-card__deco svg { display: block; width: 100%; height: 100%; stroke-width: 1.4; }
.tcbg-card--navy .tcbg-card__deco { color: rgba(255, 255, 255, .09); }
.tcbg-card--teal .tcbg-card__deco { color: rgba(10, 34, 77, .12); }
.tcbg a.tcbg-card:hover .tcbg-card__deco { transform: translate(8px, -8px) scale(1.04); }
.tcbg a.tcbg-card--navy:not(.tcbg-card--has-image) { background: radial-gradient(120% 80% at 100% 0%, rgba(86, 177, 180, .22), transparent 60%), var(--tcbg-navy); }

/* Inhalt */
.tcbg-card__body { position: relative; display: block; }
.tcbg-card__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; } /* Datum unter der Kategorie */
.tcbg-card__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}
.tcbg-card--navy .tcbg-card__chip { background: var(--tcbg-teal); color: var(--tcbg-navy); }
.tcbg-card--teal .tcbg-card__chip { background: var(--tcbg-navy); color: #fff; }
.tcbg__ico { width: 15px; height: 15px; flex: none; }
.tcbg-card__date { font-size: 14px; line-height: 20px; font-weight: 500; opacity: .85; }

.tcbg .tcbg-card__title {
	display: block;
	margin: 16px 0 0;
	padding: 0;
	color: inherit;
	font-size: 26px;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}
.tcbg-card__excerpt { display: block; margin-top: 12px; font-size: 16px; line-height: 1.55; opacity: .9; }

.tcbg-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 700; font-size: 16px; line-height: 24px; }
.tcbg__arrow { width: 20px; height: 20px; flex: none; transition: transform .3s var(--tcbg-ease); }
.tcbg-card--navy .tcbg-card__more .tcbg__arrow { color: var(--tcbg-accent); }
.tcbg a:hover .tcbg__arrow { transform: translateX(4px); }

/* „Alle Beiträge“ & leer */
.tcbg__all { margin: 32px 0 0; }
.tcbg a.tcbg__all-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border: 2px solid var(--tcbg-teal);
	border-radius: 4px;
	color: var(--tcbg-teal);
	font-weight: 700;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease;
}
.tcbg a.tcbg__all-link:hover { background: var(--tcbg-teal); color: #fff; }
.tcbg__empty { padding: 48px 24px; border-radius: 4px; background: #f4f4f4; color: var(--tcbg-navy); text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.tcbg *, .tcbg a.tcbg-card { transition: none !important; }
	.tcbg a.tcbg-card:hover { transform: none; }
}
