/* HS Teilen – bewusst neutral für Meta-Zeilen */
.hs-share {
	position: relative;
	display: inline-flex;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}

.hs-share > summary {
	list-style: none;
}

.hs-share > summary::-webkit-details-marker {
	display: none;
}

.hs-share__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: currentColor;
	cursor: pointer;
	line-height: 1;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.hs-share__toggle:hover,
.hs-share__toggle:focus-visible,
.hs-share[open] .hs-share__toggle {
	background: rgba(0, 0, 0, .07);
	color: #b91c3a;
	outline: none;
}

.hs-share__toggle:active {
	transform: scale(.94);
}

.hs-share__main-icon {
	width: 19px;
	height: 19px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hs-share__main-icon circle {
	fill: currentColor;
	stroke: none;
}

.hs-share__main-icon path {
	fill: none;
}

.hs-share__menu {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 160px;
	padding: 7px;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}

.hs-share__menu::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 50%;
	width: 9px;
	height: 9px;
	background: inherit;
	border-left: 1px solid rgba(0, 0, 0, .12);
	border-top: 1px solid rgba(0, 0, 0, .12);
	transform: translateX(-50%) rotate(45deg);
}

.hs-share__item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	border-radius: 8px;
	color: #202124 !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.hs-share__item:hover,
.hs-share__item:focus-visible {
	background: rgba(0, 0, 0, .06);
	color: #b91c3a !important;
	outline: none;
}

.hs-share__item svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: currentColor;
}

/* Dein Darkmode */
html.hs-darkmode .hs-share__toggle:hover,
html.hs-darkmode .hs-share__toggle:focus-visible,
html.hs-darkmode .hs-share[open] .hs-share__toggle {
	background: rgba(255, 255, 255, .10);
}

html.hs-darkmode .hs-share__menu {
	background: #182c28;
	border-color: rgba(255, 255, 255, .16);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

html.hs-darkmode .hs-share__menu::before {
	border-color: rgba(255, 255, 255, .16);
}

html.hs-darkmode .hs-share__item {
	color: #f2f2f2 !important;
}

html.hs-darkmode .hs-share__item:hover,
html.hs-darkmode .hs-share__item:focus-visible {
	background: rgba(255, 255, 255, .09);
	color: #fff !important;
}

@media (max-width: 640px) {
	.hs-share__menu {
		left: auto;
		right: -8px;
		transform: none;
	}

	.hs-share__menu::before {
		left: auto;
		right: 17px;
		transform: rotate(45deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hs-share__toggle {
		transition: none;
	}
}


/* Button im Share-Menü optisch wie die Links behandeln */
button.hs-share__item {
	width: 100%;
	border: 0;
	background: transparent;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

/* Mastodon-Dialog */
.hs-share-dialog {
	width: min(460px, calc(100vw - 32px));
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #202124;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.hs-share-dialog::backdrop {
	background: rgba(0, 0, 0, .48);
}

.hs-share-dialog__form {
	position: relative;
	padding: 28px;
}

.hs-share-dialog h3 {
	margin: 0 36px 10px 0;
	font-size: 22px;
	line-height: 1.2;
}

.hs-share-dialog p {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.5;
}

.hs-share-dialog label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 700;
}

.hs-share-dialog input {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #c7ccd4;
	border-radius: 9px;
	background: #fff;
	color: #202124;
	font: inherit;
	font-size: 15px;
}

.hs-share-dialog input:focus {
	border-color: #233057;
	outline: 2px solid rgba(35, 48, 87, .16);
}

.hs-share-dialog__hint {
	margin: 7px 0 0 !important;
	font-size: 12px !important;
	color: #60656f;
}

.hs-share-dialog__error {
	min-height: 20px;
	margin: 8px 0 0 !important;
	font-size: 13px !important;
	color: #b91c3a;
}

.hs-share-dialog__submit {
	width: 100%;
	margin-top: 10px;
	padding: 11px 15px;
	border: 0;
	border-radius: 9px;
	background: #233057;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.hs-share-dialog__submit:hover,
.hs-share-dialog__submit:focus-visible {
	background: #b91c3a;
}

.hs-share-dialog__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .06);
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

html.hs-darkmode .hs-share-dialog {
	background: #182c28;
	color: #f2f2f2;
}

html.hs-darkmode .hs-share-dialog input {
	border-color: rgba(255,255,255,.2);
	background: #131a30;
	color: #f2f2f2;
}

html.hs-darkmode .hs-share-dialog__hint {
	color: rgba(255,255,255,.68);
}

html.hs-darkmode .hs-share-dialog__close {
	background: rgba(255,255,255,.1);
}

@media (max-width: 520px) {
	.hs-share-dialog__form {
		padding: 22px;
	}
}
