/* TTC Inhaltsverzeichnis */
.elementor-widget-ttc-toc {
	--ttc-top: 30px;
	--ttc-effect-color: var(--e-global-color-primary, #9B0049);
	--ttc-effect-size: 3px;
	--ttc-transition: 0.2s;
	top: min(var(--ttc-top), var(--ttc-fit, 100vh));
	z-index: 5;
}
.ttc-toc { max-width: 100%; }
.ttc-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.ttc-toc__item {
	margin: 0;
	padding: 0;
	border-bottom-style: none;
}
.ttc-toc__item:last-child { border-bottom: 0 !important; }
.ttc-toc__link {
	position: relative;
	display: block;
	text-decoration: none;
	transition: color var(--ttc-transition), background-color var(--ttc-transition), box-shadow var(--ttc-transition);
}
.ttc-toc__notice {
	padding: 12px;
	border: 1px dashed #c3c3c3;
	font-size: 13px;
	color: #6d7882;
}

/* Nummerierung */
.ttc-toc--numbered .ttc-toc__list { counter-reset: ttc; }
.ttc-toc--numbered .ttc-toc__link::before {
	counter-increment: ttc;
	content: counter(ttc) ". ";
}

/* Hover-Effekte (wie Menü-Zeiger) */
.ttc-toc-effect-underline .ttc-toc__link::after,
.ttc-toc-effect-overline .ttc-toc__link::after,
.ttc-toc-effect-leftbar .ttc-toc__link::after {
	content: "";
	position: absolute;
	background: var(--ttc-effect-color);
	opacity: 0;
	transition: opacity var(--ttc-transition), transform var(--ttc-transition);
	pointer-events: none;
}
.ttc-toc-effect-underline .ttc-toc__link::after { left: 0; right: 0; bottom: 0; height: var(--ttc-effect-size); transform: scaleX(0); transform-origin: left; }
.ttc-toc-effect-overline .ttc-toc__link::after { left: 0; right: 0; top: 0; height: var(--ttc-effect-size); transform: scaleX(0); transform-origin: left; }
.ttc-toc-effect-leftbar .ttc-toc__link::after { left: 0; top: 0; bottom: 0; width: var(--ttc-effect-size); transform: scaleY(0); }
.ttc-toc-effect-underline .ttc-toc__link:is(:hover, .is-hover, .is-active, :focus-visible)::after,
.ttc-toc-effect-overline .ttc-toc__link:is(:hover, .is-hover, .is-active, :focus-visible)::after,
.ttc-toc-effect-leftbar .ttc-toc__link:is(:hover, .is-hover, .is-active, :focus-visible)::after {
	opacity: 1;
	transform: none;
}
.ttc-toc-effect-framed .ttc-toc__link { box-shadow: inset 0 0 0 var(--ttc-effect-size) transparent; }
.ttc-toc-effect-framed .ttc-toc__link:is(:hover, .is-hover, .is-active, :focus-visible) { box-shadow: inset 0 0 0 var(--ttc-effect-size) var(--ttc-effect-color); }

/* Sticky (pro Gerät) */
.elementor-element.elementor-widget-ttc-toc { position: sticky; }
.elementor-element.elementor-widget-ttc-toc.ttc-sticky-static { position: relative; }
@media (max-width: 1024px) {
	.elementor-element.elementor-widget-ttc-toc.ttc-sticky-tablet-sticky { position: sticky; }
	.elementor-element.elementor-widget-ttc-toc.ttc-sticky-tablet-static { position: relative; }
}
@media (max-width: 767px) {
	.elementor-element.elementor-widget-ttc-toc.ttc-sticky-mobile-sticky { position: sticky; }
	.elementor-element.elementor-widget-ttc-toc.ttc-sticky-mobile-static { position: relative; }
}

/* Premium Blog: Hervorhebung exakt auf Bild + weissem Textteil (Container nicht auf Zeilenhöhe strecken) */
.premium-blog-post-container[class*="ttc-card-"] { height: auto !important; }
