/* REALDOT Share */

.mivoc-share,
.mivoc-share-overlay {
	--mivoc-share-accent: #5ab230;
	--mivoc-share-accent-2: #5ab230;
	--mivoc-share-dark: #0f1714;
	--mivoc-share-hover: #e6e9e7;
	--mivoc-share-on-accent: #fff;
	--mivoc-share-on-hover: var(--mivoc-share-dark);
	--mivoc-share-height: 50px;
	--mivoc-share-pad: 38px;
	--mivoc-share-size: 16px;
	--mivoc-share-offset: 105px;
	--mivoc-share-border: #e7eae8;
	--mivoc-share-muted: #4b5550;
	--mivoc-share-radius: 11px;
	--mivoc-share-font: inherit;
	--mivoc-share-swing: 0.42s cubic-bezier(0.22, 1.15, 0.36, 1);
}

/* Auslöser */

.mivoc-share {
	pointer-events: none;
}

/* zwei Klassen, damit die Regeln auch gegen .uk-button des Themes greifen */
.mivoc-share .mivoc-share__btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	cursor: pointer;
}

.mivoc-share .mivoc-share__btn--light,
.mivoc-share .mivoc-share__btn--solid {
	padding: 0 30px;
	height: 50px;
	border: 1px solid transparent;
	border-radius: 500px;
	font-family: var(--mivoc-share-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	transition: background-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out, filter 0.1s ease-in-out;
}

.mivoc-share .mivoc-share__btn--light {
	background: #fff;
	color: var(--mivoc-share-dark);
	border-color: #ececec;
	box-shadow: 0 10px 28px -12px rgba(16, 23, 20, 0.55);
}

.mivoc-share .mivoc-share__btn--light:hover,
.mivoc-share .mivoc-share__btn--light:focus-visible {
	box-shadow: 0 14px 32px -12px rgba(16, 23, 20, 0.65);
}

.mivoc-share .mivoc-share__btn--solid {
	background-color: var(--mivoc-share-accent);
	background-image: linear-gradient(90deg, var(--mivoc-share-accent) 0, var(--mivoc-share-accent-2) 100%);
	background-origin: border-box;
	color: var(--mivoc-share-on-accent);
	box-shadow: 5px 5px 20px 1px rgba(0, 0, 0, 0.27);
}

.mivoc-share .mivoc-share__btn--solid:hover,
.mivoc-share .mivoc-share__btn--solid:focus-visible {
	filter: brightness(0.94);
	box-shadow: 5px 5px 10px 1px rgba(0, 0, 0, 0.28);
}

/* Fläche läuft beim Überfahren von links nach rechts durch */

.mivoc-share .mivoc-share__btn--sweep {
	position: relative;
	overflow: hidden;
	z-index: 0;
	height: var(--mivoc-share-height);
	padding: 0 var(--mivoc-share-pad);
	background-color: var(--mivoc-share-accent);
	background-image: linear-gradient(90deg, var(--mivoc-share-accent) 0, var(--mivoc-share-accent-2) 100%);
	background-origin: border-box;
	color: var(--mivoc-share-on-accent);
	border: 0;
	border-radius: 500px;
	font-family: var(--mivoc-share-font);
	font-size: var(--mivoc-share-size);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 5px 5px 20px 1px rgba(0, 0, 0, 0.27);
	transition: box-shadow 0.1s ease-in-out;
}

.mivoc-share .mivoc-share__btn--sweep:hover,
.mivoc-share .mivoc-share__btn--sweep:focus-visible {
	box-shadow: 5px 5px 10px 1px rgba(0, 0, 0, 0.28);
}

/* die Beschriftung liegt zweimal übereinander, die obere Lage wird
   mitgeschnitten und bleibt dadurch in jeder Phase lesbar */

.mivoc-share__face {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.mivoc-share__face--fill {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	clip-path: inset(0 100% 0 0 round 500px);
	transition: clip-path var(--mivoc-share-swing);
}

.mivoc-share .mivoc-share__btn--sweep:hover .mivoc-share__face--fill,
.mivoc-share .mivoc-share__btn--sweep:focus-visible .mivoc-share__face--fill {
	clip-path: inset(0 0 0 0 round 500px);
}

.mivoc-share .mivoc-share__btn--sweep .mivoc-share__face--fill {
	background: var(--mivoc-share-hover);
	color: var(--mivoc-share-on-hover);
}

.mivoc-share--ring .mivoc-share__btn--sweep .mivoc-share__face--fill {
	box-shadow: inset 0 0 0 2px var(--mivoc-share-accent);
}

.mivoc-share__ico {
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
}

.mivoc-share .mivoc-share__btn .mivoc-share__ico {
	width: 18px;
	height: 18px;
}

/* Größen */

.mivoc-share--size-s {
	--mivoc-share-height: 42px;
	--mivoc-share-pad: 26px;
	--mivoc-share-size: 14px;
}

.mivoc-share--size-l {
	--mivoc-share-height: 58px;
	--mivoc-share-pad: 44px;
	--mivoc-share-size: 17px;
}

/* Platzierungen */

.mivoc-share--fixed-top,
.mivoc-share--fab {
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	z-index: 90;
}

.mivoc-share--fixed-top {
	top: var(--mivoc-share-offset);
}

.admin-bar .mivoc-share--fixed-top {
	top: calc(var(--mivoc-share-offset) + 32px);
}

.mivoc-share--fab {
	bottom: max(24px, env(safe-area-inset-bottom));
}

.mivoc-share--fab .mivoc-share__btn {
	width: 56px;
	height: 56px;
	padding: 0;
	border-radius: 50%;
}

.mivoc-share--fab .mivoc-share__btn span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.mivoc-share--fab .mivoc-share__btn .mivoc-share__ico {
	width: 20px;
	height: 20px;
}

.mivoc-share--content-end,
.mivoc-share--inline {
	display: flex;
	justify-content: flex-end;
	margin: 32px 0;
}

/* Fenster */

.mivoc-share-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 20, 0.55);
}

.mivoc-share-overlay[hidden] {
	display: none;
}

.mivoc-share-overlay:not([hidden]) {
	animation: mivoc-share-fade 0.22s ease both;
}

.mivoc-share-overlay:not([hidden]) .mivoc-share-modal {
	animation: mivoc-share-lift var(--mivoc-share-swing) both;
}

.mivoc-share-overlay:not([hidden]) .mivoc-share-item {
	animation: mivoc-share-rise 0.38s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}

.mivoc-share-overlay:not([hidden]) .mivoc-share-item:nth-child(2) {
	animation-delay: 0.04s;
}

.mivoc-share-overlay:not([hidden]) .mivoc-share-item:nth-child(3) {
	animation-delay: 0.08s;
}

.mivoc-share-overlay:not([hidden]) .mivoc-share-item:nth-child(4) {
	animation-delay: 0.12s;
}

.mivoc-share-overlay:not([hidden]) .mivoc-share-item:nth-child(n + 5) {
	animation-delay: 0.16s;
}

@keyframes mivoc-share-fade {
	from {
		opacity: 0;
	}
}

@keyframes mivoc-share-lift {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.96);
	}
}

@keyframes mivoc-share-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

.mivoc-share-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 28px 28px 24px;
	background: #fff;
	color: var(--mivoc-share-dark);
	border-radius: 16px;
	box-shadow: 0 30px 70px -30px rgba(16, 23, 20, 0.6);
}

.mivoc-share-modal__title {
	margin: 0 0 18px;
	font-size: 1.25rem;
	line-height: 1.2;
	color: var(--mivoc-share-dark);
}

.mivoc-share-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	padding: 6px;
	background: none;
	border: 0;
	font-size: 1.6rem;
	line-height: 1;
	color: #8b938e;
	cursor: pointer;
}

.mivoc-share-modal__close:hover {
	color: var(--mivoc-share-dark);
}

/* Kanäle */

.mivoc-share-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.mivoc-share-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 10px;
	background: #fff;
	color: var(--mivoc-share-dark) !important;
	border: 1.5px solid var(--mivoc-share-border);
	border-radius: var(--mivoc-share-radius);
	font-family: var(--mivoc-share-font);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.mivoc-share-item:hover,
.mivoc-share-item:focus-visible {
	border-color: var(--mivoc-share-accent);
	background: color-mix(in srgb, var(--mivoc-share-accent) 8%, #fff);
}

.mivoc-share-item[hidden] {
	display: none;
}

/* Link kopieren */

.mivoc-share-copyrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 6px 6px 6px 14px;
	background: #f7f9f8;
	border: 1.5px solid var(--mivoc-share-border);
	border-radius: var(--mivoc-share-radius);
}

.mivoc-share-copyrow__url {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 0.85rem;
	color: var(--mivoc-share-muted);
}

.mivoc-share-copyrow__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	background: var(--mivoc-share-accent);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-family: var(--mivoc-share-font);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.mivoc-share-copyrow__btn:hover {
	filter: brightness(1.07);
}

.mivoc-share-copyrow__btn .mivoc-share__ico {
	width: 15px;
	height: 15px;
}

/* Mobil */

@media (max-width: 640px) {
	.mivoc-share-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mivoc-share-modal {
		padding: 24px 20px 20px;
	}

	.mivoc-share-copyrow__url {
		display: none;
	}

	.mivoc-share-copyrow {
		padding: 6px;
	}

	.mivoc-share-copyrow__btn {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mivoc-share .mivoc-share__btn,
	.mivoc-share .mivoc-share__icons .mivoc-share__ico,
	.mivoc-share__face--fill,
	.mivoc-share-item,
	.mivoc-share-copyrow__btn {
		transition: none;
	}

	.mivoc-share .mivoc-share__btn:hover {
		transform: none;
	}

	.mivoc-share-overlay:not([hidden]),
	.mivoc-share-overlay:not([hidden]) .mivoc-share-modal,
	.mivoc-share-overlay:not([hidden]) .mivoc-share-item {
		animation: none;
	}
}
