
/* NOIO 0.9.6 – Artikel becomes a magazine hub; Region remains a news feed */

.noio-magazine-shell {
	box-sizing: border-box;
	width: min(100% - 48px, 1240px) !important;
	max-width: 1240px !important;
	margin: 0 auto !important;
	padding: clamp(3rem, 5vw, 5.4rem) 0 clamp(5rem, 7vw, 7rem) !important;
}

.noio-magazine-hub {
	display: block;
}

.noio-mag-section {
	margin: 0 0 clamp(3.8rem, 7vw, 6.2rem);
}

.noio-mag-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 1.35rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #20384a;
}

.noio-mag-section-head h2,
.noio-mag-all h2 {
	margin: .22rem 0 0;
	color: #fff;
	font-size: clamp(1.75rem, 3.2vw, 2.75rem);
	line-height: 1.05;
	letter-spacing: -.025em;
}

.noio-mag-section-head p,
.noio-mag-all p {
	max-width: 720px;
	margin: .55rem 0 0;
	color: #aebfca;
	line-height: 1.55;
}

.noio-mag-section-head > a,
.noio-mag-all > a {
	flex: 0 0 auto;
	color: #24e5ff;
	font-weight: 800;
	text-decoration: none;
}

.noio-mag-section-head > a:hover,
.noio-mag-all > a:hover {
	color: #ff3daa;
}

.noio-mag-eyebrow {
	color: #24e5ff;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .19em;
	text-transform: uppercase;
}

.noio-mag-grid {
	display: grid;
	gap: 18px;
}

.noio-mag-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.noio-mag-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #20384a;
	border-radius: 14px;
	background:
		linear-gradient(180deg, rgba(14,28,41,.99), rgba(8,18,27,.99));
	box-shadow: 0 18px 48px rgba(0,0,0,.15);
	transition: transform .18s ease, border-color .18s ease;
}

.noio-mag-card:hover {
	transform: translateY(-2px);
	border-color: rgba(36,229,255,.42);
}

.noio-mag-media {
	display: block;
	aspect-ratio: 16 / 8.5;
	overflow: hidden;
	text-decoration: none;
	background: #081621;
}

.noio-mag-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}

.noio-mag-card:hover .noio-mag-media img {
	transform: scale(1.018);
}

.noio-mag-fallback {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: end;
	height: 100%;
	padding: 24px;
	box-sizing: border-box;
	background:
		radial-gradient(circle at 78% 25%, rgba(255,61,170,.22), transparent 27%),
		radial-gradient(circle at 70% 65%, rgba(36,229,255,.18), transparent 30%),
		linear-gradient(135deg, #091927, #07111a 58%, #100a18);
}

.noio-mag-fallback::after {
	content: "";
	position: absolute;
	top: -20%;
	right: 4%;
	width: 44%;
	height: 140%;
	border: 2px solid rgba(36,229,255,.30);
	border-left-color: rgba(255,61,170,.32);
	border-radius: 50%;
	transform: rotate(27deg);
}

.noio-mag-fallback-mark {
	position: relative;
	z-index: 2;
	color: #fff;
	font-size: clamp(2rem, 6vw, 4.1rem);
	font-weight: 900;
	letter-spacing: .08em;
	line-height: .9;
}

.noio-mag-fallback-cat {
	position: relative;
	z-index: 2;
	margin-top: 9px;
	color: #24e5ff;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.noio-mag-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(19px, 2.6vw, 28px);
}

.noio-mag-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: .8rem;
	color: #8197a5;
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.noio-mag-meta a {
	color: #24e5ff;
	font-weight: 800;
	text-decoration: none;
}

.noio-mag-card h3 {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	line-height: 1.16;
	letter-spacing: -.018em;
}

.noio-mag-card h3 a {
	color: #fff;
	text-decoration: none;
}

.noio-mag-card p {
	margin: .9rem 0 1.25rem;
	color: #b8c7d1;
	line-height: 1.6;
}

.noio-mag-read {
	margin-top: auto;
	color: #24e5ff;
	font-weight: 800;
	text-decoration: none;
}

.noio-mag-card-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
}

.noio-mag-card-featured .noio-mag-media {
	aspect-ratio: auto;
	min-height: 360px;
}

.noio-mag-card-featured .noio-mag-card-body {
	justify-content: center;
	padding: clamp(28px, 4vw, 54px);
}

.noio-mag-card-featured h3 {
	font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.noio-mag-category-section {
	padding-top: .4rem;
}

.noio-mag-all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(24px, 4vw, 38px);
	border: 1px solid #20384a;
	border-radius: 14px;
	background: #0b1722;
}

.noio-mag-full-archive {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 1px solid #20384a;
}

/* Make the distinction from the article hub explicit on the Region archive. */
body.category-region .noio-subhero2 .noio-kicker::after {
	content: " · LOKAL";
}

body.category-region .noio-archive2 {
	position: relative;
}

body.category-region .noio-archive2::before {
	content: "Chronologisch · Neueste Regionalmeldungen zuerst";
	display: block;
	margin: -1.3rem 0 1.5rem;
	color: #8299a8;
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* All category archives stay news-feed-like instead of magazine-like. */
body.category .noio-archive2 .wp-block-post-template {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.noio-magazine-shell {
		width: calc(100% - 32px) !important;
		padding-top: 2.8rem !important;
	}

	.noio-mag-card-featured {
		display: flex;
	}

	.noio-mag-card-featured .noio-mag-media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	body.category .noio-archive2 .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 700px) {
	.noio-mag-grid-2 {
		grid-template-columns: 1fr;
	}

	.noio-mag-section-head,
	.noio-mag-all {
		align-items: flex-start;
		flex-direction: column;
	}

	.noio-mag-section-head > a,
	.noio-mag-all > a {
		margin-top: .25rem;
	}
}
