/* MTT Google Bewertungen – Badge */
.mttgr-badge {
	--mttgr-accent: #00632e;
	--mttgr-bg: #fff;
	--mttgr-stars: #f9bc11;
	--mttgr-name: #666;
	--mttgr-rating: #cb923b;
	--mttgr-text: #666;
	--mttgr-link: #000;
	--mttgr-radius: 0px;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 50px 1fr;
	grid-template-areas: "logo head" "line line";
	column-gap: 18px;
	row-gap: 6px;
	align-items: center;
	padding: 12px 20px 10px;
	background: var(--mttgr-bg);
	border-top: 5px solid var(--mttgr-accent);
	border-radius: var(--mttgr-radius);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
	font-family: var(--mttgr-font, Arial, Helvetica, sans-serif);
	font-size: 15px;
	line-height: 1.3;
	color: var(--mttgr-text);
	text-align: left;
}
.mttgr-badge *,
.mttgr-badge *::before,
.mttgr-badge *::after { box-sizing: border-box; }

.mttgr-logo { grid-area: logo; display: block; width: 50px; height: 50px; line-height: 0; }
.mttgr-g { width: 100%; height: 100%; display: block; }

.mttgr-head { grid-area: head; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mttgr-name {
	font-size: 17px;
	font-weight: 700;
	color: var(--mttgr-name);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mttgr-stars { display: block; width: 110px; height: 22px; }
.mttgr-stars-empty { fill: #dcdcdc; }
.mttgr-stars-full { fill: var(--mttgr-stars); }

.mttgr-line { grid-area: line; }
.mttgr-line a { white-space: nowrap; }
.mttgr-rating { font-size: 19px; font-weight: 700; color: var(--mttgr-rating); }
.mttgr-badge a.mttgr-link,
.mttgr-badge a.mttgr-link:hover,
.mttgr-badge a.mttgr-link:focus { color: var(--mttgr-link); text-decoration: underline; text-underline-offset: 2px; }
.mttgr-badge a:focus-visible { outline: 2px solid var(--mttgr-accent); outline-offset: 2px; }

.mttgr-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Inline (Shortcode) */
.mttgr-inline { display: inline-block; max-width: 100%; }
.mttgr-inline .mttgr-badge { box-shadow: none; border: 1px solid #e6e6e6; border-top: 5px solid var(--mttgr-accent); }
.mttgr-inline--noname .mttgr-name { display: none; }

/* Floating */
.mttgr-float {
	position: fixed;
	max-width: calc(100vw - 20px);
	animation: mttgr-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
.mttgr-float:not([data-delay="0"]):not(.is-visible) { display: none; }
.mttgr-float.is-closing { animation: mttgr-out .25s ease-in both; }
/* Themes (z. B. Hello Elementor) stylen alle Buttons global → hier mit !important zurücksetzen. */
.mttgr-float button.mttgr-close {
	position: absolute !important;
	top: -9px !important;
	right: -9px !important;
	z-index: 1;
	width: 24px !important;
	height: 24px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid !important;
	place-items: center;
	border: 0 !important;
	border-radius: 50% !important;
	background: #8a8a8a !important;
	color: #fff !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-transform: none !important;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25) !important;
	opacity: .85;
	transition: opacity .15s, transform .15s;
}
.mttgr-float button.mttgr-close:hover,
.mttgr-float button.mttgr-close:focus { opacity: 1; background: #6d6d6d !important; color: #fff !important; }
.mttgr-float button.mttgr-close:active { transform: scale(.92); }
.mttgr-float button.mttgr-close:focus-visible { outline: 2px solid #000 !important; outline-offset: 2px; }
.mttgr-float button.mttgr-close svg { display: block; width: 9px !important; height: 9px !important; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

@keyframes mttgr-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes mttgr-out { to { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
	.mttgr-float, .mttgr-float.is-closing { animation-duration: .01s; }
}
@media (max-width: 767px) {
	.mttgr-float .mttgr-badge { grid-template-columns: 40px 1fr; column-gap: 12px; padding: 10px 14px 8px; font-size: 14px; }
	.mttgr-float .mttgr-logo { width: 40px; height: 40px; }
	.mttgr-float .mttgr-name { font-size: 15px; }
	.mttgr-float .mttgr-stars { width: 95px; height: 19px; }
	.mttgr-float .mttgr-rating { font-size: 17px; }
}
@media print { .mttgr-float { display: none !important; } }
