/* Eigenständige Lesezeichen-Seite und Header-Badge. */
.bookmark-nav-btn {
	position: relative;
	height: var(--header-control-h, 40px);
	min-height: 0;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}

.bookmark-nav-btn:hover,
.bookmark-nav-btn:focus-visible {
	background: var(--surface-2);
	color: var(--text);
}

.bookmark-nav-btn.is-active {
	background: var(--btn-primary-bg);
	border-color: var(--btn-primary-border);
	color: var(--btn-primary-text);
}

.bookmark-nav-btn:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring-soft);
}

.bookmark-nav-btn .icon {
	width: 18px;
	height: 18px;
	color: var(--text-3, #737373);
}

.bookmark-nav-btn.has-bookmarks .icon,
.bookmark-nav-btn.is-active .icon,
.thumb-bookmark-btn.has-bookmarks .icon,
.thumb-bookmark-btn.is-active .icon {
	color: #ff3040;
}

.bookmark-nav-btn.is-active .icon,
.thumb-bookmark-btn.is-active .icon {
	color: var(--btn-primary-text);
}

.bookmark-nav-count {
	display: inline-grid;
	place-items: center;
	min-width: 16px;
	align-self: stretch;
	height: auto;
	padding: 0 0 0 10px;
	border-left: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 0;
	background: transparent;
	color: currentColor;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
}

.bookmark-nav-count[hidden] {
	display: none;
}

.mobile-nav .bookmark-nav-btn {
	width: 100%;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-height: 48px;
	height: auto;
	border-radius: var(--radius-md);
}

.mobile-nav .bookmark-nav-btn > * {
	flex: 0 0 auto;
}

.main-nav .bookmark-nav-count,
.mobile-nav .bookmark-nav-count {
	flex: 0 0 auto;
	margin-left: auto;
	align-self: stretch;
}

.header-icon-count-btn .bookmark-nav-count {
	margin-left: 2px;
}

.thumb-bookmark-btn {
	text-decoration: none;
}

@media (max-width: 560px) {
	.thumb-menu .thumb-bookmark-btn.bookmark-nav-btn {
		position: absolute;
		display: inline-flex;
		width: var(--thumb-item);
		height: var(--thumb-item);
		min-height: 0;
		padding: 0;
		border-radius: 999px;
	}

	.thumb-menu .thumb-bookmark-btn .icon {
		width: 20px;
		height: 20px;
	}

	.thumb-menu .thumb-bookmark-btn .bookmark-nav-count {
		position: static;
		min-width: 16px;
		height: auto;
		padding: 0 0 0 9px;
		pointer-events: none;
	}

	body.thumb-left .thumb-menu .thumb-bookmark-btn .bookmark-nav-count {
		right: auto;
		left: auto;
	}

	.thumb-menu.thumb-long .thumb-bookmark-btn.bookmark-nav-btn {
		position: absolute;
		display: inline-flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		width: var(--thumb-long-width);
		height: 46px;
		padding: 0 16px;
	}

	.thumb-menu.thumb-long .thumb-bookmark-btn .bookmark-nav-count {
		position: static;
		flex: 0 0 auto;
		margin-left: auto;
		transform: none;
	}

	.thumb-menu.thumb-long .thumb-bookmark-btn .thumb-full {
		flex: 1 1 auto;
		min-width: 0;
		text-align: left;
	}

	body.thumb-left .thumb-menu.thumb-long .thumb-bookmark-btn .bookmark-nav-count {
		right: auto;
		left: auto;
	}
}

.ars-app .bookmarks-page {
	width: min(var(--max), calc(100% - var(--page-inline-space)));
	max-width: var(--max);
}

.ars-app .map-page {
	width: 100%;
	margin: 0;
	padding: 0;
}

.ars-app .bookmarks-page-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin: 0 0 var(--page-section-gap);
}

.ars-app .bookmarks-page-list {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.ars-app .bookmark-offer-item {
	position: relative;
	min-width: 0;
}

.ars-app .bookmark-offer-remove {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-grid;
	align-items: center;
	justify-content: center;
	place-items: center;
	width: 38px;
	height: 38px;
	min-width: 38px;
	min-height: 38px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	color: #ff3040;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
}

.ars-app .bookmark-offer-remove .icon {
	width: 18px;
	height: 18px;
	min-width: 18px;
	max-width: 18px;
	flex: 0 0 18px;
	display: block;
	fill: currentColor;
	color: #ff3040;
}

.ars-app .bookmark-offer-remove span {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ars-app .bookmarks-page-empty {
	grid-column: 1 / -1;
	display: grid;
	place-items: center;
	gap: 12px;
	padding: clamp(28px, 6vw, 56px);
	border: 1px dashed var(--app-border);
	border-radius: var(--radius-xl);
	background: var(--app-card);
	color: var(--app-muted);
	text-align: center;
}

.ars-app .bookmarks-page-empty .icon {
	width: 38px;
	height: 38px;
	color: var(--app-muted);
}

@media (max-width: 700px) {
	.ars-app .bookmarks-page {
		width: min(100% - var(--page-inline-space-mobile), var(--max));
	}

	.ars-app .bookmarks-page-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.ars-app .bookmarks-page-toolbar .btn {
		width: 100%;
		justify-content: center;
	}

	.ars-app .bookmark-offer-remove {
		top: 8px;
		right: 8px;
		width: 38px;
		height: 38px;
	}
}
