body.post-type-archive-svh_mag main {
	overflow: visible;
}

body.post-type-archive-svh_mag .svh-section {
	padding-top: clamp(34px, 5vw, 66px);
}

body.post-type-archive-svh_mag .svh-section__head {
	align-items: end;
	margin-bottom: clamp(20px, 3vw, 34px);
}

body.post-type-archive-svh_mag .svh-section__head h2,
body.post-type-archive-svh_mag .svh-section > h2 {
	margin: 0;
	line-height: 1.05;
}

/* Einheitliches Raster für aktuelle Ausgaben und Archiv. */
body.post-type-archive-svh_mag .svh-mag-current,
body.post-type-archive-svh_mag .svh-mag-archive .svh-grid {
	display: grid;
	align-items: stretch;
	gap: clamp(16px, 2vw, 24px);
}

body.post-type-archive-svh_mag .svh-mag-current {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.post-type-archive-svh_mag .svh-mag-current--single {
	grid-template-columns: minmax(280px, 410px);
	max-width: none;
}

body.post-type-archive-svh_mag .svh-mag-archive .svh-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Eine gemeinsame Karte verhindert unterschiedliche Höhen und Überläufe. */
body.post-type-archive-svh_mag .svh-mag-card {
	min-width: 0;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .92);
	border-radius: 26px;
	background: rgba(255, 255, 255, .72);
	box-shadow: 0 18px 42px rgba(24, 36, 32, .09);
}

body.post-type-archive-svh_mag .svh-mag-card > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	color: inherit;
	text-decoration: none;
}

/* Cover: überall gleich groß, schwarz hinterlegt und vollständig abgerundet. */
body.post-type-archive-svh_mag .svh-mag-card .svh-card__media {
	width: min(calc(100% - 32px), 230px);
	height: auto;
	min-height: 0;
	aspect-ratio: .707 / 1;
	margin: 16px auto 0;
	overflow: hidden;
	border-radius: 18px;
	background: #050505;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

body.post-type-archive-svh_mag .svh-mag-card .svh-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: inherit;
	object-fit: contain;
	object-position: center;
}

body.post-type-archive-svh_mag .svh-mag-card .svh-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	min-height: 0;
	padding: 15px 17px 20px;
	text-align: center;
}

body.post-type-archive-svh_mag .svh-mag-card .svh-mag-card__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	color: #65706c;
}

body.post-type-archive-svh_mag .svh-mag-card .svh-pill {
	padding: 7px 11px;
	font-size: .66rem;
	letter-spacing: .12em;
}

body.post-type-archive-svh_mag .svh-mag-card time {
	font-size: .8rem;
	font-weight: 780;
	white-space: nowrap;
}

body.post-type-archive-svh_mag .svh-mag-card .svh-card__body h3 {
	width: 100%;
	margin: 12px 0 0;
	font-size: clamp(1.02rem, 1.55vw, 1.3rem);
	line-height: 1.16;
	letter-spacing: -.025em;
	overflow-wrap: anywhere;
	text-align: center;
}

body.post-type-archive-svh_mag .svh-mag-card .svh-mag-card__action {
	display: inline-flex;
	align-items: center;
	align-self: center;
	justify-content: center;
	min-height: 40px;
	margin: 15px 0 0;
	padding: 9px 15px;
	border-radius: 999px;
	background: #050505;
	color: #fff;
	font-size: .78rem;
	font-weight: 850;
	white-space: nowrap;
}

/* Archivwerkzeuge. */
.svh-mag-tools {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 24px;
}

.svh-mag-tools label {
	display: grid;
	gap: 7px;
	color: #606a67;
	font-size: .72rem;
	font-weight: 850;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.svh-mag-tools select {
	min-width: 210px;
	min-height: 46px;
	padding: 8px 42px 8px 15px;
	border: 1px solid rgba(17, 32, 27, .14);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, .84);
	color: #111;
	font: inherit;
	font-size: .95rem;
	font-weight: 750;
}

.svh-mag-load-more {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 28px auto 0;
	padding: 10px 23px;
	border: 0;
	border-radius: 999px;
	background: #050505;
	color: #fff;
	font: inherit;
	font-weight: 850;
	cursor: pointer;
}

.svh-mag-load-more:hover {
	transform: translateY(-1px);
}

.svh-mag-empty {
	margin: 22px 0 0;
	padding: 22px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .7);
	color: #606a67;
	text-align: center;
}

@media (max-width: 1120px) {
	body.post-type-archive-svh_mag .svh-mag-current,
	body.post-type-archive-svh_mag .svh-mag-archive .svh-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	body.post-type-archive-svh_mag .svh-mag-current,
	body.post-type-archive-svh_mag .svh-mag-archive .svh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.post-type-archive-svh_mag .svh-mag-current--single {
		grid-template-columns: minmax(260px, 390px);
	}
}

/* Smartphone hochkant: kompakt, identisch zentriert, ohne leere Textflächen. */
@media (max-width: 700px) and (orientation: portrait) {
	body.post-type-archive-svh_mag .svh-section {
		padding-top: 32px;
	}

	body.post-type-archive-svh_mag .svh-mag-current {
		grid-template-columns: 1fr;
	}

	body.post-type-archive-svh_mag .svh-mag-current--single {
		grid-template-columns: minmax(0, 1fr);
	}

	body.post-type-archive-svh_mag .svh-mag-archive .svh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	body.post-type-archive-svh_mag .svh-mag-card {
		border-radius: 22px;
	}

	body.post-type-archive-svh_mag .svh-mag-current .svh-card__media {
		width: min(50%, 195px);
		margin-top: 13px;
		border-radius: 16px;
	}

	body.post-type-archive-svh_mag .svh-mag-archive .svh-card__media {
		width: calc(100% - 20px);
		margin-top: 10px;
		border-radius: 14px;
	}

	body.post-type-archive-svh_mag .svh-mag-card .svh-card__body {
		padding: 12px 11px 16px;
	}

	body.post-type-archive-svh_mag .svh-mag-card .svh-pill {
		display: none;
	}

	body.post-type-archive-svh_mag .svh-mag-card .svh-mag-card__meta {
		gap: 0;
	}

	body.post-type-archive-svh_mag .svh-mag-card .svh-card__body h3 {
		margin-top: 8px;
		font-size: clamp(.9rem, 4.5vw, 1.18rem);
		line-height: 1.13;
	}

	body.post-type-archive-svh_mag .svh-mag-card .svh-mag-card__action {
		min-height: 38px;
		margin-top: 12px;
		padding: 8px 13px;
		font-size: .73rem;
	}

	body.post-type-archive-svh_mag.svh-mag-no-archive main {
		min-height: 0;
		padding-bottom: 50px;
	}

	.svh-mag-tools {
		align-items: stretch;
		flex-direction: column;
		margin-bottom: 20px;
	}

	.svh-mag-tools select {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 380px) and (orientation: portrait) {
	body.post-type-archive-svh_mag .svh-mag-archive .svh-grid {
		gap: 9px;
	}

	body.post-type-archive-svh_mag .svh-mag-archive .svh-card__body {
		padding-inline: 8px;
	}

	body.post-type-archive-svh_mag .svh-mag-card .svh-card__body h3 {
		font-size: .86rem;
	}

	body.post-type-archive-svh_mag .svh-mag-card .svh-mag-card__action {
		padding-inline: 11px;
		font-size: .69rem;
	}
}

/* Querformat bleibt mehrspaltig und nutzt denselben Kartenaufbau. */
@media (max-height: 520px) and (orientation: landscape) {
	body.post-type-archive-svh_mag .svh-mag-current,
	body.post-type-archive-svh_mag .svh-mag-archive .svh-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	body.post-type-archive-svh_mag .svh-mag-card .svh-card__media {
		width: min(calc(100% - 24px), 180px);
		margin-top: 12px;
	}
}
