/* Schwebende Magazin-Navi im Single */

.b08-mag-nav {
	z-index: 40;
}

.b08-mag-nav__fab {
	display: none;
}

.b08-mag-nav__panel {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.97);
	border: 1px solid var(--b08-line);
	box-shadow: 0 12px 36px rgba(20, 22, 23, 0.16);
	backdrop-filter: blur(10px);
	max-height: min(78vh, 36rem);
}

.b08-mag-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.7rem 0.85rem 0.55rem;
	border-bottom: 1px solid var(--b08-line);
}

.b08-mag-nav__brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
	flex: 1;
}

.b08-mag-nav__logo {
	display: block;
	height: 2.55rem;
	width: auto;
	max-width: min(11.5rem, 62%);
	object-fit: contain;
	object-position: left center;
}

.b08-mag-nav__nr {
	flex-shrink: 0;
	margin: 0;
	font-family: var(--b08-display);
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	color: var(--b08-red);
	line-height: 1.1;
	white-space: nowrap;
}

.b08-mag-nav__kicker {
	margin: 0;
	font-family: var(--b08-display);
	font-weight: 800;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--b08-red);
}

.b08-mag-nav__close {
	display: none;
	border: 0;
	background: transparent;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	color: var(--b08-ink);
}

.b08-mag-nav__list {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0;
	flex: 0 0 auto;
	height: 16.5rem;
	min-height: 16.5rem;
	max-height: 16.5rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.b08-mag-nav__item.is-filtered-out {
	display: none;
}

.b08-mag-nav__item a {
	display: grid;
	grid-template-columns: 3.25rem 1fr;
	gap: 0.65rem;
	align-items: center;
	padding: 0.45rem 0.85rem;
	text-decoration: none;
	color: var(--b08-ink);
	transition: background 0.15s ease;
}

.b08-mag-nav__item a:hover,
.b08-mag-nav__item a:focus-visible {
	background: #fff5f5;
}

.b08-mag-nav__item.is-current a {
	background: #fff0f0;
	box-shadow: inset 3px 0 0 var(--b08-red);
}

.b08-mag-nav__thumb {
	width: 3.25rem;
	height: 2.4rem;
	border-radius: 0.25rem;
	overflow: hidden;
	background: linear-gradient(135deg, var(--b08-ink), var(--b08-red));
}

.b08-mag-nav__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.b08-mag-nav__thumb-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #fff;
	font-family: var(--b08-display);
	font-weight: 800;
	font-size: 0.85rem;
}

.b08-mag-nav__title {
	font-family: var(--b08-display);
	font-weight: 700;
	font-size: 0.82rem;
	line-height: 1.25;
}

.b08-mag-nav__adj {
	display: flex;
	gap: 0.5rem;
	padding: 0.65rem 0.85rem 0.9rem;
	border-top: 1px solid var(--b08-line);
}

.b08-mag-nav__adj a {
	flex: 1;
	text-align: center;
	padding: 0.45rem 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--b08-ink-2);
	border: 1px solid var(--b08-line);
	border-radius: 0.3rem;
}

.b08-mag-nav__adj a:hover {
	border-color: var(--b08-red);
	color: var(--b08-red);
}

.b08-mag-nav__back {
	display: block;
	padding: 0 0.85rem 0.75rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--b08-red);
	text-decoration: none;
	flex-shrink: 0;
}

.b08-mag-nav__filter {
	flex-shrink: 0;
	border-top: 1px solid var(--b08-line);
	padding: 0.65rem 0.75rem 0.75rem;
	background: rgba(255, 255, 255, 0.92);
}

.b08-mag-nav__filter-heading {
	margin: 0 0 0.4rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--b08-muted);
}

.b08-mag-nav__filter-list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	max-height: 8.5rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.b08-mag-nav__filter-btn {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	width: 100%;
	min-height: 1.85rem;
	padding: 0.25rem 0.45rem 0.25rem 0.5rem;
	border: 1px solid transparent;
	border-radius: 0.3rem;
	background: transparent;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--b08-ink-2);
	cursor: pointer;
	text-align: left;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.b08-mag-nav__filter-btn:hover,
.b08-mag-nav__filter-btn:focus-visible {
	background: #fff5f5;
	border-color: #ffd4d5;
}

.b08-mag-nav__filter-btn.is-active {
	background: var(--b08-ink);
	border-color: var(--b08-ink);
	color: #fff;
}

.b08-mag-nav__filter-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b08-mag-nav__filter-badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: var(--b08-red);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 0 0 2px #fff;
}

.b08-mag-nav__filter-btn.is-active .b08-mag-nav__filter-badge {
	box-shadow: 0 0 0 2px var(--b08-ink);
}

.b08-mag-nav__backdrop {
	display: none;
}

@media (min-width: 1100px) {
	.b08-main__inner--magazin {
		margin-left: max(1rem, calc((100vw - var(--b08-max)) / 2 + 15.5rem));
		max-width: 46rem;
	}

	.b08-mag-nav {
		position: fixed;
		left: max(0.75rem, calc((100vw - var(--b08-max)) / 2 - 0.5rem));
		top: 6.5rem;
		width: 14.5rem;
	}

	.b08-mag-nav__panel {
		border-radius: 0.65rem;
	}
}

@media (max-width: 1099px) {
	.b08-mag-nav__fab {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		left: 1rem;
		bottom: 1.25rem;
		z-index: 45;
		min-height: 2.85rem;
		padding: 0 1.1rem;
		border: 0;
		border-radius: 999px;
		background: var(--b08-ink);
		color: #fff;
		font-weight: 700;
		cursor: pointer;
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
	}

	.b08-mag-nav__panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 46;
		max-height: min(78vh, 32rem);
		border-radius: 1rem 1rem 0 0;
		transform: translateY(110%);
		transition: transform 0.3s ease;
		visibility: hidden;
	}

	.b08-mag-nav.is-open .b08-mag-nav__panel {
		transform: translateY(0);
		visibility: visible;
	}

	.b08-mag-nav__close {
		display: inline-flex;
	}

	.b08-mag-nav__backdrop {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 44;
		background: rgba(20, 22, 23, 0.45);
	}

	.b08-mag-nav.is-open .b08-mag-nav__backdrop {
		display: block;
	}
}
