Vorlage:Themenrücklink Migration/styles.css

Aus Hist. Verein Herne / Wanne-Eickel
/* ===========================================================
   TemplateStyles für Vorlage:Themenrücklink Migration
   Speichern unter:  Vorlage:Themenrücklink Migration/styles.css
   =========================================================== */

.trl {
	float: right;
	clear: right;
	max-width: 250px;
	margin: 0.8em 0 1em 1.2em;
	padding: 14px 14px 12px;
	background: #ffffff;
	border: 1px solid #e0e0d8;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.08 );
	text-align: center;
	font-size: 13px;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.trl:hover {
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.14 );
	transform: translateY( -1px );
}

.trl a,
.trl img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.trl__text {
	margin-top: 10px;
	font-size: 13px;
	color: #5f5e5a;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

/* ---------- Responsive ---------- */
@media ( max-width: 600px ) {
	.trl {
		float: none;
		max-width: 100%;
		margin: 0.8em 0;
	}
}

/* ---------- Druckansicht ---------- */
@media print {
	.trl {
		box-shadow: none;
		border: 1px solid #ccc;
		break-inside: avoid;
	}
	.trl:hover {
		box-shadow: none;
		transform: none;
	}
}

/* ---------- Dunkler Modus ---------- */
@media ( prefers-color-scheme: dark ) {
	.trl {
		background: #2c2c2a;
		border-color: #444441;
		box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.4 );
	}
	.trl:hover {
		box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.55 );
	}
	.trl__text {
		color: #b4b2a9;
	}
}