/* ==========================================================================
   1. PLUGIN CUSTOM & BASIC LIFTS
   ========================================================================== */
.hero-container {
	margin-top: -25px;
}

.heroslider,
.herocaption {
	min-height: 525px;
}

.heroslider {
	margin-bottom: 10px;
	-webkit-box-shadow: none !important;
	-moz-box-shadow: none !important;
	box-shadow: none !important;
}

.heroslider .nivo-main-image {
	height: 525px !important;
}

.heroslider img {
	min-height: 525px;
	object-fit: cover;
}

.spirit,
.artikelteaser_parent {
	cursor: pointer;
}

/* Navigation & Controls */
.theme-default .nivo-controlNav {
	text-align: center;
	margin-top: -60px !important;
	z-index: 100 !important;
	position: relative;
}

.theme-default .nivo-directionNav {
	margin: 0px;
}

.theme-default .nivo-directionNav a {
	opacity: 1;
	position: absolute;
	height: 525px;
	top: 0;
	width: 100px;
}

.theme-default a.nivo-nextNav,
.theme-default a.nivo-prevNav {
	background-position: center center;
	background-repeat: no-repeat; 
	background-size: cover;
}

.theme-default a.nivo-prevNav {
	left: 0;
	border-right: 10px solid #fff;
}

.theme-default a.nivo-nextNav {
	right: 0;
	border-left: 10px solid #fff;
}

/* Hover-Effekte für Nav-Pfeile */
.nivo-prevNav:hover::before,
.nivo-nextNav:hover::before {
	font-family: 'ritzelhoch2' !important;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0; 
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.1);
	color: #fff;
	font-size: 1.5rem;
	font-style: normal;
	font-weight: 600;
	font-variant: normal;
	text-indent: 0;
}

.nivo-prevNav:hover::before { content: "\f053"; }
.nivo-nextNav:hover::before { content: "\f105"; }

/* ==========================================================================
   2. GLOBAL CAPTION CONTAINER (DESKTOP FIRST)
   ========================================================================== */
.heroslider .nivo-caption {
	background: none !important;
	color: #FFF !important;
	text-align: left !important;
	opacity: 1 !important;
	font-family: TTHovesPro, Verdana, Helvetica, Arial, sans-serif;
	position: absolute !important;
	bottom: 70px !important;
	left: 185px !important;
	width: 40%;
	top: auto !important;
	height: auto !important;
	
	display: flex !important; 
	flex-direction: column !important;
	align-items: flex-start !important;
}

/* ==========================================================================
   3. TYPOGRAFIE & TEXTMARKER-EFFEKTE (GLOBAL)
   ========================================================================== */

/* --- TITEL (H2) --- */
.heroslider .nivo-caption h2.title {

	position: relative !important; 
	top: auto !important;
	margin: 0px !important;
	margin-bottom: 15px !important;
	padding: 0 !important;
	background: none !important;
	width: auto !important;
	max-width: 100% !important;
	align-self: flex-start !important;
	display: inline-block !important; /* Hält die H2 kompakt um den Inhalt herum */
	
	opacity: 1 !important; 
	isolation: isolate !important; 
	
	font-size: 38px; 
	letter-spacing: 0.025em !important; 
	font-weight: bold !important;
	text-transform: uppercase !important;
}

/* EBENE 1: DAS PERFEKTE KISSEN (STREIFENFREI) */
html body .heroslider .nivo-caption h2.title span.marker-bg {
	display: inline !important;
	box-decoration-break: clone !important;
	-webkit-box-decoration-break: clone !important;
	
	/* HIER ANGEPASST: Synchron mit der Schriftebene für perfekten Platz */
	line-height: 115% !important; 
	padding: 2px 12px !important;
	
	background: rgb(51, 51, 51) !important;
	opacity: 0.7 !important; 
}

/* Das CSS spiegelt den Text aus dem HTML-Attribut für die Boxen-Breite */
html body .heroslider .nivo-caption h2.title span.marker-bg::before {
	content: attr(data-text) !important;
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
}

/* EBENE 2: DIE SCHRIFT (100% WEISS & PERFEKT ÜBERLAGERT) */
html body .heroslider .nivo-caption h2.title span.marker-text {
	/* DIE RETTUNG: Löst den Text aus dem Fluss und pinnt ihn 
	   auf den Pixel genau über das graue Hintergrundkissen */
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 2 !important; /* Legt den Text über den Hintergrund */
	pointer-events: none !important; /* Verhindert, dass der Text Slider-Klicks blockiert */
	
	display: inline !important;
	box-decoration-break: clone !important;
	-webkit-box-decoration-break: clone !important;
	
	/* HIER ANGEPASST: Deine optimierten Werte für entspannten Zeilenabstand */
	line-height: 115% !important;
	padding: 2px 12px !important;
	background: transparent !important; /* Kein eigener Hintergrund! */
	
	/* 100% volldeckendes Weiß für die Buchstaben */
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	text-shadow: none !important;
	opacity: 1 !important;
}

/* --- DESCRIPTION (H3) --- */
.heroslider .nivo-caption h3.desc {
	position: static !important;
	top: auto !important;
	margin: 0 0 15px 0 !important;
	padding: 0 !important;
	background: none !important;
	width: auto !important;
	max-width: 100% !important;
	align-self: flex-start !important;
	display: block !important;
	
	opacity: 1 !important; 
	isolation: isolate !important; 
	
	font-size: 16px !important;
	letter-spacing: .025em !important;
	font-weight: normal !important;
	text-transform: uppercase !important;
	line-height: 1.5 !important; 
}

html body .heroslider .nivo-caption h3.desc span,
html body .heroslider .nivo-caption h3.desc span a {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	text-shadow: none !important;
	
	display: inline !important;
	box-decoration-break: clone !important;
	-webkit-box-decoration-break: clone !important;
	padding: 4px 10px !important; 
	line-height: inherit !important;
	
	background-color: transparent !important;
	background-image: linear-gradient(rgba(51, 51, 51, 0.7), rgba(51, 51, 51, 0.7)) !important;
}

/* --- BUTTON / LINK --- */
.heroslider .nivo-caption div.link {
	position: static !important;
	top: auto !important;
	bottom: auto !important;
	width: fit-content !important;
	height: 42px;
	font-size: 17px;
	margin: 0 !important;        
	margin-top: 30px !important; 
}

.heroslider .nivo-caption div.link a {
	background-color: #ef7800;
	color: #fff;
	border: 1px solid #ef7800;
	border-radius: 0px;
	padding: 8px 12px;
	text-decoration: none;
	text-transform: uppercase;
}

.heroslider .nivo-caption div.link a::after {
	font-family: 'ritzelhoch2' !important;
	content: "\f105";
	font-size: .9rem;
	font-style: normal;
	font-weight: 400;
	font-variant: normal;
	speak: never;
	display: inline-block;
	line-height: 1;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: transform 0.2s ease-in-out;
	margin-left: 5px;
}

.heroslider .nivo-caption div.link:hover a::after {
	transform: translateX(4px);
}

.heroslider .nivo-caption div.link:hover a {
	color: #eee;
}

/* --- ALT & INFOCAPTION RESETS --- */
.heroslider .nivo-caption div.alt {
	display: none !important;
}

#hero-main-caption {
	position: absolute;
	background: rgba(51, 51, 51, 0.7);
	mask-image: linear-gradient(black, black), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon points='0,0 10,5 0,10'/%3E%3C/svg%3E");
	mask-position: 0 0, 0 var(--mask-y, 0px);
	mask-size: 100% 100%, 16px 24px;
	mask-repeat: no-repeat;
	mask-composite: exclude;
	--mask-offset: -12px;
	padding: 20px;
	top: 80px;
	right: 175px;
	display: block;
	z-index: 100;    
	font-size: 1.1rem;
	color: #fff;
	transition: color 500ms linear;
}

#hero-main-caption .highlight-active { font-weight: bold; }
#hero-main-caption .title { font-size: 1.1rem; font-weight: bold; cursor: pointer; padding-left: 3px; }
#hero-main-caption .desc { font-size: .9rem; color: #ddd; padding-left: 3px; }
.hero-caption:hover .title, .hero-caption:hover .desc { color: #ef7800; }
.hero-caption { margin-bottom: 10px; }
.htmlcaption { display: none; }

.nivo-controlNav {
	display: none;
}

/* ==========================================================================
   4. MEDIA QUERIES (BREAKPOINTS SCHRITTWEISE REDUZIEREN)
   ========================================================================== */

/* --- TABLETS & LAPTOPS (min-width: 1140px) --- */
@media (min-width: 1140px) {
	.heroslider .nivo-caption {
		width: 40%;
		left: 145px;
	}
}

/* --- GROSSE DESKTOPS (min-width: 1340px) --- */
@media (min-width: 1340px) {
	.heroslider .nivo-caption {
		width: 640px;
	}
}

/* @media (max-width: 1084.98px) {
	.heroslider .nivo-caption {
		width: 35%;
		left: 145px;
	}
} */

/* --- MEDIUM DEVICES (max-width: 991.98px) --- */
@media (max-width: 991.98px) {
	.hero-container {
		margin-top: 25px;
		padding-right: 0;
		padding-left: 0;
	}
	.nivo-controlNav {
		display: block !important;
	}
	.heroslider, .herocaption {
		min-height: 425px;
		height: 425px;
	}
	.heroslider .nivo-caption {
		left: 30px !important;
		bottom: 70px !important;
		width: auto !important;
	}
	.heroslider .nivo-caption h2.title {
		font-size: 30px !important;
		margin-bottom: 15px !important;
	}
	#hero-main-caption {
		display: none !important;
	}
	.theme-default .nivo-directionNav a {
		height: 100% !important;
	}
	.theme-default a.nivo-nextNav,
	.theme-default a.nivo-prevNav {
		background: transparent !important; 
	}
	.theme-default a.nivo-prevNav { border-right: 0px !important; }
	.theme-default a.nivo-nextNav { border-left: 0px !important; }
}

/* --- SMARTPHONES (max-width: 767.98px) --- */
@media (max-width: 767.98px) {
	.heroslider .nivo-caption {
		bottom: 40px !important;
		left: 30px !important;
		right: 30px !important;
		width: auto !important;
	}
	
	/* Mobil-Titel */
	.heroslider .nivo-caption h2.title {
		font-size: 26px !important;
		margin-bottom: 15px !important;
	}
	.heroslider .nivo-caption h2.title span {
		padding: 4px 10px !important;
	}
	
	/* Mobil-Description */
	.heroslider .nivo-caption h3.desc {
		font-size: 14px !important;
		margin-bottom: 10px !important;
		line-height: 1.4 !important; 
	}
	html body .heroslider .nivo-caption h3.desc span {
		padding: 3px 8px !important;
	}
	
	/* Mobil-Button Space */
	.heroslider .nivo-caption div.link {
		font-size: 12px;
		margin-top: 15px !important; 
	}
	
	.heroslider .nivo-caption div.link a::after {
		font-size: .6rem;
	}
}