/* ==========================================================================
   ALLGEMEINER LAYOUT-FIX (NICHT TEIL DES COPYRIGHT-SYSTEMS!)
   ==========================================================================
   Verhindert, dass die Seite kurz nach rechts/links springt, wenn
   Elementor Pro (z. B. Off-Canvas-Panels bei Anfahrt & Lage) beim
   Öffnen/Schließen kurzzeitig die Scrollbar per 'overflow: hidden'
   ausblendet. Reserviert den Platz der Scrollbar dauerhaft, damit sich
   am Layout nichts verschiebt, egal ob die Scrollbar gerade sichtbar
   ist oder nicht.
   ========================================================================== */

html {
	scrollbar-gutter: stable !important;
}


/* ==========================================================================
   HOSPIZ LOUISE – COPYRIGHT-OVERLAY FÜR BILDER
   Bereinigte, einheitlich formatierte Version

   TOUCH-GERÄTE (Abschnitt 1–5): Tippen zeigt die Copyright-Box, nochmal
   tippen (oder woanders hintippen) versteckt sie wieder. Das steuert das
   separate JS-Snippet "Copyright Touch Toggle" (WPCode, Website-weit im
   Footer), das die Klasse "js-copyright-open" setzt/entfernt bzw. bei der
   Slideshow die schon vorhandene Klasse "hospiz-slideshow-hover" mitnutzt.
   Abschnitt 6 (Jet Slider) ist davon bewusst ausgenommen - eigene Lösung.
   ========================================================================== */


/* ==========================================================================
   1. NORMALES ELEMENTOR-BILD-WIDGET (z. B. Trauerangebote)
   Wird erzeugt, sobald am Bild-Widget eine Beschriftung
   ("Beschriftung des Anhangs") aktiv ist -> Elementor rendert dann
   <figure class="wp-caption"><figcaption class="widget-image-caption">.
   Box hängt links unten, daher oben-rechts / unten-links abgerundet.
   ========================================================================== */

/* 1.1 Bild-Container: Positionierungskontext für die Copyright-Box */
figure.wp-caption {
	position: relative !important;
}

/* 1.2 Copyright-Kasten */
figure.wp-caption > figcaption.widget-image-caption {
	position: absolute !important;
	left: 0 !important;
	bottom: 0 !important;
	z-index: 999 !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 8px 12px !important;
	box-sizing: border-box !important;
	background: #67287ED9 !important;
	border-radius: 0 5px 0 15px !important;
	color: #FFFFFF !important;
	font-family: Aleo, serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* 1.3 Copyright-Text innerhalb des Kastens */
figure.wp-caption > figcaption.widget-image-caption > .copyright-image__caption {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	color: #FFFFFF !important;
	font-family: Aleo, serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
}

/* 1.4 Hover: Kasten einblenden (nur echte Hover-Geräte, sonst siehe
   Touch-Regel unten - vermeidet den iOS-Bug, bei dem :hover nach einem
   Tap "hängen bleibt" und die Box trotz Tap-Toggle sichtbar hält) */
@media (hover: hover) {
	figure.wp-caption:hover > figcaption.widget-image-caption {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}


/* ==========================================================================
   2. LOOP GRID (klassisches Elementor-Loop-Grid mit Featured Image)
   Box hängt rechts unten, daher oben-links / unten-rechts abgerundet.
   ========================================================================== */

/* 2.1 Äußerer Loop-Grid-Wrapper */
.copyright-image {
	position: relative !important;
}

/* 2.2 Innerer Loop-Grid-Wrapper */
.copyright-image__inner {
	position: relative !important;
	display: block !important;
	overflow: visible !important;
}

/* 2.3 Copyright-Kasten */
.copyright-image__inner .copyright-image__caption {
	position: absolute !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	z-index: 999 !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 8px 12px !important;
	box-sizing: border-box !important;
	background: #67287ED9 !important;
	border-radius: 5px 0 15px 0 !important;
	color: #FFFFFF !important;
	font-family: Aleo, serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	transform: translateY(0) !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* 2.4 Hover: Kasten einblenden (nur echte Hover-Geräte, siehe 1.4) */
@media (hover: hover) {
	.copyright-image__inner:hover .copyright-image__caption {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}


/* ==========================================================================
   1+2. GEMEINSAME ANPASSUNGEN FÜR NORMALES BILD & LOOP GRID
   ========================================================================== */

/* Touch-Geräte: kein Hover verfügbar -> Tippen zeigt/versteckt Copyright.
   Klasse "js-copyright-open" wird vom Snippet "Copyright Touch Toggle"
   per Klick/Tap gesetzt bzw. entfernt. */
figure.wp-caption.js-copyright-open > figcaption.widget-image-caption {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: none !important;
}

.copyright-image__inner.js-copyright-open .copyright-image__caption {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: none !important;
}

/* Reduzierte Bewegung: keine Übergangsanimation */
@media (prefers-reduced-motion: reduce) {

	figure.wp-caption > figcaption.widget-image-caption,
	.copyright-image__inner .copyright-image__caption {
		transition: none !important;
		transform: none !important;
	}

}


/* ==========================================================================
   3. ELEMENTOR PRO LOOP ITEM IMAGE
   Fallback für Bild-Widgets ohne aktive Beschriftung (kein wp-caption),
   siehe Snippet "Copyright Fotos". Box hängt rechts unten wie Abschnitt 2.
   ========================================================================== */

/* 3.1 Wrapper: Positionierungskontext für die Copyright-Box */
/* display: block + width: 100% ist nötig, weil dies ein <span> ist (von
   Haus aus inline) und ein position:relative auf einem Inline-Element mit
   block-artigem Inhalt (Bild) sonst in mehrere Fragmente zerfällt ->
   Copyright-Box würde mittig statt am Bildrand positioniert.
   WICHTIG: inline-block statt block+width:100% NICHT verwenden – dann
   schrumpft der Wrapper in Flex-Layouts (z. B. Mitarbeiten) auf die
   Bild-Eigenbreite und wird vom Elternelement zentriert. */
.hospiz-loop-item-copyright {
	position: relative !important;
	display: block !important;
	width: 100% !important;
}

/* 3.2 Copyright-Kasten */
.hospiz-loop-item-copyright__caption {
	position: absolute !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 999 !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 8px 12px !important;
	box-sizing: border-box !important;
	background: #67287ED9 !important;
	border-radius: 5px 0 15px 0 !important;
	color: #FFFFFF !important;
	font-family: Aleo, serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* 3.3 Hover: Kasten einblenden (nur echte Hover-Geräte, siehe 1.4) */
@media (hover: hover) {
	.hospiz-loop-item-copyright:hover .hospiz-loop-item-copyright__caption {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}

/* 3.4 Touch-Geräte: Tippen zeigt/versteckt Copyright (Klasse
   "js-copyright-open" wird per "Copyright Touch Toggle"-Snippet gesetzt) */
.hospiz-loop-item-copyright.js-copyright-open .hospiz-loop-item-copyright__caption {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}


/* ==========================================================================
   4. COPYRIGHT – COCO / CROCO TIMELINE (Zeitstrahl)
   ========================================================================== */

/* 4.1 Bild-Container innerhalb der Zeitstrahl-Karte */
.timeline-item__card-img .coco-copyright-image {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	line-height: 0 !important;
}

.timeline-item__card-img .coco-copyright-image img {
	display: block !important;
}

/* 4.2 Copyright-Kasten */
.timeline-item__card-img .coco-copyright-caption {
	position: absolute !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 999 !important;
	display: block !important;
	padding: 8px 12px !important;
	background: #67287ED9 !important;
	border-radius: 5px 0 15px 5px !important;
	color: #ffffff !important;
	font-family: Aleo, serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* 4.3 Hover: Kasten einblenden (nur echte Hover-Geräte, siehe 1.4) */
@media (hover: hover) {
	.timeline-item__card-img .coco-copyright-image:hover .coco-copyright-caption {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}

/* 4.4 Touch-Geräte: Tippen zeigt/versteckt Copyright (Klasse
   "js-copyright-open" wird per "Copyright Touch Toggle"-Snippet gesetzt).
   Gab es vorher nicht -> Box war auf Touch-Geräten nie sichtbar. */
.timeline-item__card-img .coco-copyright-image.js-copyright-open .coco-copyright-caption {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}


/* ==========================================================================
   5. SLIDESHOW-CONTAINER
   Hover-Klasse "hospiz-slideshow-hover" wird per JS (mouseenter/mouseleave,
   Snippet "Copyright Background Slideshow") gesetzt; die Sichtbarkeit
   selbst steuert dieses CSS über die Klassenkombination.
   ========================================================================== */

/* 5.1 Container: Positionierungskontext für die Copyright-Box */
.elementor-element.hospiz-slideshow-container {
	position: relative !important;
}

/* 5.2 Copyright-Kasten */
.hospiz-slideshow-copyright {
	position: absolute !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 99999 !important;
	padding: 8px 12px !important;
	background: #67287ED9 !important;
	border-radius: 5px 0 0 0 !important;
	color: #ffffff !important;
	font-family: Aleo, serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* 5.3 Hover-Klasse (von JS gesetzt): Kasten einblenden */
.elementor-element.hospiz-slideshow-container.hospiz-slideshow-hover .hospiz-slideshow-copyright {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

/* 5.4 Touch-Geräte: Tippen zeigt/versteckt Copyright. Braucht keine eigene
   Regel - das "Copyright Touch Toggle"-Snippet setzt/entfernt per Tap
   dieselbe Klasse "hospiz-slideshow-hover" wie oben (5.3), die schon
   von der Maus-Hover-Logik genutzt wird. */

/* 5.5 Reduzierte Bewegung: keine Übergangsanimation */
@media (prefers-reduced-motion: reduce) {

	.hospiz-slideshow-copyright {
		transition: none !important;
		transform: none !important;
	}

}


/* ==========================================================================
   6. COPYRIGHT – JET SLIDER

   WICHTIG: Sichtbarkeit (opacity/visibility) wird HIER BEWUSST NICHT
   gesteuert. Das übernimmt vollständig das JS-Snippet
   "Copyright Croco Slider" per mousemove-Erkennung direkt über
   Inline-Styles (position, z-index, display, opacity, visibility).
   Hier werden ausschließlich die optischen Eigenschaften (Farbe,
   Schrift, Position, Radius) überschrieben.
   ========================================================================== */

/* 6.1 Copyright-Kasten */
.hospiz-media-caption {
	right: 0 !important;
	bottom: 84px !important; /* direkt am lila Banner */
	padding: 8px 12px 8px 12px !important; /* wie bei den anderen Copyrights */
	margin-right: 10px;
	background: #67287ED9 !important; /* vorhandene Hospiz-Copyright-Farbe */
	border-radius: 15px 15px 0 0 !important; /* nur oben abgerundet */
	box-sizing: border-box !important;
	color: #FFFFFF !important;
	font-family: Aleo, serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* 6.2 Tablet & Mobile: andere Ecke, da Layout umbricht */
@media (max-width: 1024px) {

	.hospiz-media-caption {
		right: auto !important;
		left: 0 !important;
		top: 0 !important;
		bottom: auto !important;
		border-radius: 15px 0 5px 5px !important;
	}

}

/* 6.3 Reduzierte Bewegung: keine Übergangsanimation */
@media (prefers-reduced-motion: reduce) {

	.hospiz-media-caption {
		transition: none !important;
		transform: none !important;
	}

}


/* ==========================================================================
   ENDE – COPYRIGHT
   ========================================================================== */