/* Link Preview cards – Hub tokens (--dh-*) via lp-theme-*.css + bridge */

.dlp-item {
  /* --lp-* tokens: lp-theme-*.css + Hub bridge (not :root --dh-*) */
  --dlp-text-pad-x: 12px;
  --dlp-text-pad-top: 12px;
  --dlp-text-pad-bottom: 12px;
  --dlp-text-gap: 8px;
  list-style: none !important;
  list-style-type: none !important;
  border-radius: 5px;
  padding: 0 !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
  background-color: var(--lp-surface, #ffffff) !important;
  color: var(--lp-text, #333333) !important;
  border: 1px solid var(--lp-border, #bbbbbb) !important;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
  max-width: 100%;
}

/* Stelle sicher, dass Bilder keine Margin haben und als Block-Elemente dargestellt werden */
.dlp-item img {
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  vertical-align: top;
  max-width: 100%;
  border: none;
  outline: none;
  aspect-ratio: 1200 / 600;
  object-fit: cover;
  object-position: center;
}

/* Separate Regel für generierte Screenshot/OG-Bilder */
.dlp-item .dlp-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1200 / 600;
  object-fit: cover;
  object-position: center;
}

/* Legacy: top-level link wraps only the image (sites gallery children) */
.dlp-item > a:not(.dlp-card-link) {
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  line-height: 0;
  text-decoration: none;
  border: none;
  outline: none;
  width: 100%;
  aspect-ratio: 1200 / 600;
  overflow: hidden;
  flex: 0 0 auto;
}

.dlp-item > a:not(.dlp-card-link) > .dlp-image {
  width: 100%;
  height: 100% !important;
}

/* Custom heading (title attribute) – top + sides, no bottom gap */
.dlp-item .dlp-heading {
  margin: 0 !important;
  padding: var(--dlp-text-pad-top) var(--dlp-text-pad-x) var(--dlp-text-gap) var(--dlp-text-pad-x) !important;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

/* Page title below image */
.dlp-item h3 {
  margin: var(--dlp-text-gap) 0 0 0 !important;
  padding: 0 var(--dlp-text-pad-x) 0 var(--dlp-text-pad-x) !important;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* First text block directly under image (no custom h2) */
.dlp-item > a + h3 {
  margin-top: var(--dlp-text-pad-top) !important;
}

.dlp-item h3 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--lp-accent) !important;
}

.dlp-item p {
  margin: var(--dlp-text-gap) 0 0 0 !important;
  padding: 0 var(--dlp-text-pad-x) 0 var(--dlp-text-pad-x) !important;
  line-height: 1.5;
}

/* URL-Link mit Ellipsis wenn zu lang */
.dlp-item p.dlp-link {
  margin-top: var(--dlp-text-gap) !important;
  margin-bottom: 0 !important;
  padding: 0 var(--dlp-text-pad-x) var(--dlp-text-pad-bottom) var(--dlp-text-pad-x) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
  color: var(--lp-accent) !important;
}

/* Description as last visible block (no link line) */
.dlp-item p:not(.dlp-link):last-child {
  padding-bottom: var(--dlp-text-pad-bottom) !important;
}

/* Only title + description, no link */
.dlp-item h3:last-child {
  padding-bottom: var(--dlp-text-pad-bottom) !important;
}

/* Only custom heading, no image/text below */
.dlp-item .dlp-heading:only-child {
  padding-bottom: var(--dlp-text-pad-bottom) !important;
}

.dlp-item p.dlp-link a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
  color: var(--lp-accent) !important;
}

.dlp-item p.dlp-info {
  margin-top: var(--dlp-text-gap) !important;
  margin-bottom: 0 !important;
  padding: 0 var(--dlp-text-pad-x) var(--dlp-text-pad-bottom) var(--dlp-text-pad-x) !important;
  line-height: 1.5;
}

/* Whole-card link (Reference Hub style): one hit target + image zoom inside media frame */
.dlp-item--card-hit {
  overflow: visible;
  height: 100%;
}

.dlp-item--card-hit .dlp-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  color: inherit !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  width: 100%;
  flex: 1 1 auto;
}

.dlp-item--card-hit .dlp-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1200 / 600;
  flex: 0 0 auto;
  line-height: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  contain: paint;
}

.dlp-item--card-hit .dlp-media .dlp-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease-in-out;
  transform: scale(1);
  transform-origin: center center;
}

.dlp-item--card-hit:hover .dlp-media .dlp-image,
.dlp-item--card-hit:focus-within .dlp-media .dlp-image {
  transform: scale(1.05);
}

.dlp-item--card-hit .dlp-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  flex-shrink: 0;
  min-width: 0;
  line-height: 1.5;
}

.dlp-item--card-hit .dlp-card-body h3 {
  margin: calc(var(--dlp-text-pad-top) + 4px) 0 0 0 !important;
  padding: 0 var(--dlp-text-pad-x) 0 var(--dlp-text-pad-x) !important;
  color: var(--lp-text, #333333) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dlp-item--card-hit .dlp-card-body .dlp-card-desc,
.dlp-item--card-hit .dlp-card-body p.dlp-card-desc {
  margin: var(--dlp-text-gap) 0 0 0 !important;
  padding: 0 var(--dlp-text-pad-x) 0 var(--dlp-text-pad-x) !important;
  color: color-mix(in srgb, var(--lp-text, #333333) 72%, transparent) !important;
  white-space: normal !important;
  line-height: 1.5;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex: 0 1 auto;
}

/* Optional line clamp via ellipsis="3" / ellipsis="4lines" on gallery or child preview */
.dlp-item--card-hit .dlp-card-body .dlp-card-desc.dlp-card-desc--clamp,
.dlp-item--card-hit .dlp-card-body p.dlp-card-desc.dlp-card-desc--clamp,
.dirschl-lp-list .dlp-list-desc.dlp-card-desc--clamp {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: var(--dlp-desc-lines, 3) !important;
  line-clamp: var(--dlp-desc-lines, 3) !important;
  overflow: hidden !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  flex: 0 0 auto !important;
  max-width: 100%;
}

.dlp-item--card-hit .dlp-card-body p.dlp-link {
  margin: calc(var(--dlp-text-gap) + 4px) 0 0 0 !important;
  padding: 0 var(--dlp-text-pad-x) var(--dlp-text-pad-bottom) var(--dlp-text-pad-x) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--lp-accent) !important;
  font-size: 0.92em;
  line-height: 1.4;
}

.dlp-item--card-hit .dlp-card-body h3:last-child {
  padding-bottom: var(--dlp-text-pad-bottom) !important;
}

/* show=…0 (no URL line): bottom pad on body, not on description text */
.dlp-item--card-hit .dlp-card-body:not(:has(.dlp-link)) {
  padding-bottom: var(--dlp-text-pad-bottom);
}

.dlp-item--card-hit .dlp-card-body .dlp-card-desc:last-child,
.dlp-item--card-hit .dlp-card-body p.dlp-card-desc:last-child {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.dlp-item--card-hit .dlp-heading + .dlp-card-link .dlp-card-body h3 {
  margin-top: var(--dlp-text-gap) !important;
}

/* Container für die Bilder mit festem Seitenverhältnis */
.dlp-img-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1200 / 600;
}

/* Beide Bilder werden absolut positioniert, sodass sie den Container ausfüllen */
.dlp-img-container .dlp-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
}

/* Standard: Main-Image sichtbar, Screenshot unsichtbar */
.dlp-img-container .main-image {
  opacity: 1;
  z-index: 1;
}

.dlp-img-container .screenshot-image {
  opacity: 0;
  z-index: 2;
}

/* Beim Hover: Main-Image ausblenden, Screenshot einblenden */
.dlp-item > a:not(.dlp-card-link):hover .dlp-img-container .main-image,
.dlp-img-container:hover .main-image {
  opacity: 0;
}

.dlp-item > a:not(.dlp-card-link):hover .dlp-img-container .screenshot-image,
.dlp-img-container:hover .screenshot-image {
  opacity: 1;
}

/* Divi/Theme: ul/li padding & bullets inside gallery/carousel (not content lists) */
#left-area .dirschl-lp-gallery-wrapper ul,
#left-area .dirschl-lp-gallery-wrapper ul li,
#left-area .seo-carousel-wrapper ul,
#left-area .seo-carousel-wrapper ul li,
.entry-content .dirschl-lp-gallery-wrapper ul,
.entry-content .dirschl-lp-gallery-wrapper ul li,
.entry-content .seo-carousel-wrapper ul,
.entry-content .seo-carousel-wrapper ul li,
.et-l--body .dirschl-lp-gallery-wrapper ul,
.et-l--body .dirschl-lp-gallery-wrapper ul li,
.et-l--body .seo-carousel-wrapper ul,
.et-l--body .seo-carousel-wrapper ul li,
.et-l--footer .dirschl-lp-gallery-wrapper ul,
.et-l--footer .dirschl-lp-gallery-wrapper ul li,
.et-l--footer .seo-carousel-wrapper ul,
.et-l--footer .seo-carousel-wrapper ul li,
.et-l--header .dirschl-lp-gallery-wrapper ul,
.et-l--header .dirschl-lp-gallery-wrapper ul li,
.et-l--header .seo-carousel-wrapper ul,
.et-l--header .seo-carousel-wrapper ul li,
.et_pb_text .dirschl-lp-gallery-wrapper ul,
.et_pb_text .seo-carousel-wrapper ul,
.et_pb_code_inner .dirschl-lp-gallery-wrapper ul,
.et_pb_code_inner .seo-carousel-wrapper ul {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  margin-left: 0 !important;
}

.dirschl-lp-gallery-wrapper .dirschl-lp-gallery-grid .dlp-item,
.seo-carousel-wrapper .seo-carousel-track .dlp-item {
  /* Card padding stays on .dlp-item; only cancel Divi list indent */
  margin-left: 0 !important;
}

/* Whole-card link: URL line is plain text in p.dlp-link (no nested <a>) */
.dlp-item--card-hit .dlp-card-link .dlp-card-body p.dlp-link,
#left-area .dlp-item--card-hit .dlp-card-link p.dlp-link,
.entry-content .dlp-item--card-hit .dlp-card-link p.dlp-link,
.et-l--body .dlp-item--card-hit .dlp-card-link p.dlp-link,
.et_pb_text .dlp-item--card-hit .dlp-card-link p.dlp-link,
.et_pb_code_inner .dlp-item--card-hit .dlp-card-link p.dlp-link {
  color: var(--lp-accent) !important;
}

/* Multi-card carousel (link preview rows). */
.dlp-carousel {
	position: relative;
	width: 100%;
	overflow: visible;
}

.dlp-carousel-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	margin: 0 auto;
	text-align: center;
	touch-action: pan-y pinch-zoom;
	-webkit-overflow-scrolling: touch;
}

.dlp-carousel-viewport ul,
.dlp-carousel-track {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.dlp-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 25px;
	transition: transform 0.5s ease;
}

.dlp-carousel-track .dlp-item {
	flex: 0 0 var(--dlp-carousel-basis-desktop, 25%);
	width: var(--dlp-carousel-basis-desktop, 25%);
	max-width: var(--dlp-carousel-basis-desktop, 25%);
	min-width: 0;
	height: auto;
	align-self: stretch;
}

@media (max-width: 1100px) {
	.dlp-carousel-track .dlp-item {
		flex: 0 0 var(--dlp-carousel-basis-tablet, 33.333%);
		width: var(--dlp-carousel-basis-tablet, 33.333%);
		max-width: var(--dlp-carousel-basis-tablet, 33.333%);
	}
}

@media (max-width: 800px) {
	.dlp-carousel-track .dlp-item {
		flex: 0 0 var(--dlp-carousel-basis-small, 50%);
		width: var(--dlp-carousel-basis-small, 50%);
		max-width: var(--dlp-carousel-basis-small, 50%);
	}
}

@media (max-width: 500px) {
	.dlp-carousel-track .dlp-item {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}
}

.dlp-carousel-prev,
.dlp-carousel-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	color: var(--dh-text, var(--lp-text, #fff));
	border: none;
	box-shadow: none;
	width: auto;
	height: auto;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	z-index: 10;
	font-size: 2.25rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.dlp-carousel-prev {
	left: -2rem;
}

.dlp-carousel-next {
	right: -2rem;
}

@media (max-width: 800px) {
	.dlp-carousel-prev {
		left: 0.35rem;
	}

	.dlp-carousel-next {
		right: 0.35rem;
	}
}

.dlp-carousel-prev:hover,
.dlp-carousel-prev:focus,
.dlp-carousel-next:hover,
.dlp-carousel-next:focus {
	background: transparent;
	border: none;
	outline: none;
	opacity: 0.85;
}

/* Full-width hero / slideshow (one slide visible). */
.dlp-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	--dlp-hero-frame-height: auto;
	--dlp-hero-img-max-height: none;
}

.dlp-hero-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 630;
	max-height: var(--dlp-hero-img-max-height);
}

.dlp-hero-viewport ul,
.dlp-hero-track {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.dlp-hero-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	transition: transform 0.5s ease;
}

.dlp-hero-track .dlp-item {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: none !important;
	background: transparent !important;
	border-radius: 0;
}

/* Reserve LCP frame before the image bytes arrive (matches OG 1200×630). */
.dlp-hero .dlp-item > a,
.dlp-hero .dlp-hero-media,
.dlp-hero .dlp-item .dlp-img-container {
	aspect-ratio: 1200 / 630 !important;
	flex: 0 0 auto !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	max-height: var(--dlp-hero-img-max-height);
	min-height: 0;
	overflow: hidden;
	line-height: 0;
	background: transparent;
}

.dlp-hero .dlp-item .dlp-img-container {
	position: relative;
	width: 100%;
	height: auto;
}

.dlp-hero .dlp-item img,
.dlp-hero .dlp-item .dlp-image {
	aspect-ratio: 1200 / 630 !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100%;
	object-fit: contain !important;
	object-position: center center;
	margin: 0 auto;
	border-radius: 0;
	transition: transform 0.35s ease;
	transform: scale(1);
	will-change: transform;
}

.dlp-hero .dlp-hero-media:hover .dlp-image,
.dlp-hero .dlp-item > a:hover .dlp-image,
.dlp-hero .dlp-item > a:hover .dlp-img-container .dlp-image {
	transform: scale(1.03);
}

.dlp-hero .dlp-item > a:hover .dlp-img-container {
	transform: scale(1.03);
	transition: transform 0.35s ease;
}

.dlp-hero .dlp-item > a .dlp-img-container .dlp-image {
	position: relative;
	top: auto;
	left: auto;
}

.dlp-hero-slide {
	position: relative;
	display: block;
	width: 100%;
	min-height: 0;
	overflow: hidden;
}

.dlp-hero-slide--media-only {
	min-height: 0;
}

.dlp-hero-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	text-decoration: none;
}

.dlp-hero-media::before {
	content: none;
}

.dlp-hero-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem 1.25rem 1.35rem;
	background: color-mix(in srgb, var(--dh-surface, var(--lp-surface, #111)) 78%, transparent);
	color: var(--dh-text, var(--lp-text, #fff));
	text-align: left;
	pointer-events: none;
	z-index: 2;
}

.dlp-hero-caption .dlp-heading,
.dlp-hero-caption h2,
.dlp-hero-caption h3,
.dlp-hero-caption p {
	margin: 0 0 0.35rem;
	padding: 0;
	color: inherit;
	pointer-events: auto;
}

.dlp-hero-caption h3 a {
	color: inherit;
	text-decoration: none;
}

.dlp-hero-caption h3 a:hover {
	text-decoration: underline;
}

.dlp-hero-caption .dlp-link {
	display: none;
}

.dlp-hero-prev,
.dlp-hero-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	color: var(--dh-text, var(--lp-text, #fff));
	border: none;
	box-shadow: none;
	width: auto;
	height: auto;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	z-index: 12;
	font-size: 2.5rem;
	line-height: 1;
	display: none;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.dlp-hero.dlp-nav-2 .dlp-hero-prev,
.dlp-hero.dlp-nav-2 .dlp-hero-next {
	display: flex;
}

@media (max-width: 800px) {
	.dlp-hero-viewport {
		max-height: none;
		height: auto;
	}

	.dlp-hero .dlp-item > a,
	.dlp-hero .dlp-hero-media,
	.dlp-hero .dlp-item .dlp-img-container {
		max-height: none;
	}

	.dlp-hero .dlp-item img,
	.dlp-hero .dlp-item .dlp-image {
		height: auto !important;
		max-height: none;
		object-fit: cover !important;
	}
}

@media (min-width: 801px) {
	.dlp-hero {
		--dlp-hero-img-max-height: min(70vh, 640px);
	}

	.dlp-hero.dlp-nav-1 .dlp-hero-prev,
	.dlp-hero.dlp-nav-1 .dlp-hero-next,
	.dlp-hero.dlp-nav-2 .dlp-hero-prev,
	.dlp-hero.dlp-nav-2 .dlp-hero-next {
		display: flex;
	}
}

.dlp-hero-prev {
	left: 0.5rem;
}

.dlp-hero-next {
	right: 0.5rem;
}

.dlp-hero-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0.25rem 0;
	list-style: none !important;
}

/* Compact dots; 24px+ touch target (Lighthouse) without wide button boxes. */
.dlp-hero-dots button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	min-width: 1.5rem;
	min-height: 1.5rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.dlp-hero-dots button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--dh-text, var(--lp-text, #333)) 35%, transparent);
	transform: translate(-50%, -50%);
	transition: transform 0.15s ease, background 0.15s ease;
}

.dlp-hero-dots button.is-active::before {
	background: var(--dh-accent, var(--lp-accent, #2ea3f2));
	transform: translate(-50%, -50%) scale(1.25);
}

.dlp-hero-dots button:hover,
.dlp-hero-dots button:focus {
	opacity: 0.9;
	outline: none;
}

.dlp-hero.dirschl-lp-culoca-gallery .dlp-hero-media::before {
	display: none;
}

/* Nested [dirschl_link_preview] in hero */
.dlp-hero-track > .dlp-item {
	position: relative;
	min-height: 0;
}

.dlp-hero-track > .dlp-item > a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.dlp-hero-track > .dlp-item > .dlp-heading,
.dlp-hero-track > .dlp-item > h2,
.dlp-hero-track > .dlp-item > h3,
.dlp-hero-track > .dlp-item > p:not(.dlp-link):not(.dlp-info) {
	position: absolute;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0 1.25rem;
	background: color-mix(in srgb, var(--dh-surface, var(--lp-surface, #111)) 78%, transparent);
	color: var(--dh-text, var(--lp-text, #fff));
	pointer-events: auto;
	z-index: 2;
}

.dlp-hero-track > .dlp-item > .dlp-heading,
.dlp-hero-track > .dlp-item > h2 {
	bottom: 4.5rem;
}

.dlp-hero-track > .dlp-item > h3 {
	bottom: 2.5rem;
}

.dlp-hero-track > .dlp-item > p:not(.dlp-link):not(.dlp-info) {
	bottom: 0.75rem;
	padding-bottom: 1rem;
}

.dlp-hero-track > .dlp-item > .dlp-link,
.dlp-hero-track > .dlp-item > .dlp-info {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.dlp-hero .dlp-item img,
	.dlp-hero .dlp-item .dlp-image,
	.dlp-hero .dlp-item > a .dlp-img-container {
		transition: none;
	}

	.dlp-hero .dlp-hero-media:hover .dlp-image,
	.dlp-hero .dlp-item > a:hover .dlp-image,
	.dlp-hero .dlp-item > a:hover .dlp-img-container,
	.dlp-hero .dlp-item > a:hover .dlp-img-container .dlp-image {
		transform: none;
	}
}

/* Grid gallery for [dirschl_link_preview_gallery] */
.dirschl-lp-gallery-wrapper {
  position: relative;
  width: 100%;
  --dirschl-lp-gallery-cols: 4;
  --dirschl-lp-gallery-cols-md: 3;
  --dirschl-lp-gallery-cols-sm: 2;
  --dirschl-lp-gallery-gap: 25px;
}

.dirschl-lp-gallery-grid {
  display: grid;
  gap: var(--dirschl-lp-gallery-gap);
  grid-template-columns: repeat(var(--dirschl-lp-gallery-cols), minmax(0, 1fr));
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  align-items: stretch;
}

.dirschl-lp-gallery-grid .dlp-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
}

@media (max-width: 1100px) {
  .dirschl-lp-gallery-grid {
    grid-template-columns: repeat(var(--dirschl-lp-gallery-cols-md), minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .dirschl-lp-gallery-grid {
    grid-template-columns: repeat(var(--dirschl-lp-gallery-cols-sm), minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .dirschl-lp-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.dirschl-lp-gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.dirschl-lp-gallery-pagination a,
.dirschl-lp-gallery-pagination span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.3;
}

.dirschl-lp-gallery-pagination a {
  border: 1px solid var(--lp-border, #bbbbbb);
  background: var(--lp-surface, #ffffff);
  color: var(--lp-text, #333333);
}

.dirschl-lp-gallery-pagination a:hover {
  background: var(--lp-control-hover, #e0e0e0);
}

.dirschl-lp-gallery-pagination .is-current {
  font-weight: 700;
  color: inherit;
  border: 1px solid transparent;
}

.dirschl-lp-gallery-pagination .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Standalone [dirschl_link_preview] outside gallery/carousel shells. */
ul.dirschl-lp-standalone {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* List layout for [dirschl_link_preview_gallery layout="list"] */

.dirschl-lp-list {
  --dlp-list-gap: 16px;
  --dlp-list-thumb-width: 220px;
  width: 100%;
}

.dirschl-lp-list-track {
  display: flex;
  flex-direction: column;
  gap: var(--dlp-list-gap);
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dirschl-lp-list .dlp-item--list,
.dirschl-lp-list .dlp-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dirschl-lp-list .dlp-list-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.dirschl-lp-list .dlp-list-thumb {
  flex: 0 0 var(--dlp-list-thumb-width);
  width: var(--dlp-list-thumb-width);
  max-width: 38%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  line-height: 0;
  border-radius: 4px;
}

.dirschl-lp-list .dlp-list-thumb .dlp-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1200 / 630;
}

.dirschl-lp-list .dlp-list-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 8px;
}

.dirschl-lp-list .dlp-list-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35;
  font-size: 1.05rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.dirschl-lp-list .dlp-list-title a {
  color: var(--lp-accent, #c65d07) !important;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.dirschl-lp-list .dlp-list-desc {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.dirschl-lp-list .dlp-list-url {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.9rem;
  opacity: 0.85;
}

.dirschl-lp-list .dlp-list-url,
.dirschl-lp-list .dlp-list-url a {
  color: var(--lp-accent) !important;
}

/* Nested [dirschl_link_preview] children in sites view (absolute thumb | stacked text column) */
.dirschl-lp-list.dirschl-lp-view-gallery--sites {
  --dlp-list-gap: 0;
  --dlp-sites-item-pad: 12px;
  --dlp-sites-text-gap: 6px;
  --dlp-sites-col-gap: 16px;
  --dlp-sites-text-indent: calc(var(--dlp-list-thumb-width) + var(--dlp-sites-col-gap));
  --dlp-sites-thumb-height: calc(var(--dlp-list-thumb-width) * 630 / 1200);
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track {
  gap: 0 !important;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) {
  --dlp-text-pad-top: 0;
  --dlp-text-pad-x: 0;
  --dlp-text-pad-bottom: 0;
  --dlp-text-gap: var(--dlp-sites-text-gap);
  position: relative;
  display: block !important;
  margin-top: var(--dlp-sites-item-pad) !important;
  margin-bottom: var(--dlp-sites-item-pad) !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list):has(> a:first-of-type) {
  padding-left: var(--dlp-sites-text-indent) !important;
  min-height: var(--dlp-sites-thumb-height);
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > .dlp-heading {
  display: none;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > a:first-of-type {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--dlp-list-thumb-width) !important;
  max-width: 38%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  font-size: 0;
  aspect-ratio: 1200 / 630;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > a:first-of-type .dlp-img-container,
.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > a:first-of-type img,
.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > a:first-of-type .dlp-image {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  vertical-align: top;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h3,
.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > p {
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h2.dlp-heading,
.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h3 {
  margin: 0 !important;
  margin-block: 0 !important;
  padding: 0 !important;
  padding-block: 0 !important;
  line-height: 1 !important;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h2.dlp-heading a,
.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h3 a {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > a:first-of-type + h3 {
  margin: 0 !important;
  margin-top: 0 !important;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h3 + p,
.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > p + p {
  margin-top: var(--dlp-sites-text-gap) !important;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > p {
  padding-bottom: 0 !important;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > p:last-child {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h3:last-child {
  padding-bottom: 0 !important;
}

@media (max-width: 640px) {
  .dirschl-lp-list {
    --dlp-list-thumb-width: 120px;
  }

  .dirschl-lp-list .dlp-list-row {
    gap: 12px;
  }
}

/* Divi list reset */
#left-area .dirschl-lp-list ul,
#left-area .dirschl-lp-list ul li,
.entry-content .dirschl-lp-list ul,
.entry-content .dirschl-lp-list ul li,
.et-l--body .dirschl-lp-list ul,
.et-l--body .dirschl-lp-list ul li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#left-area .dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h2.dlp-heading,
#left-area .dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h3,
.entry-content .dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h2.dlp-heading,
.entry-content .dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h3,
.et-l--body .dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h2.dlp-heading,
.et-l--body .dirschl-lp-list.dirschl-lp-view-gallery--sites > .dirschl-lp-list-track > .dlp-item:not(.dlp-item--list) > h3 {
  margin: 0 !important;
  padding: 0 !important;
  padding-block: 0 !important;
  line-height: 1 !important;
}

/* DIRSCHL Link Preview – Light (follows active Hub --dh-* aliases) */
.dlp-item,
.dirschl-lp-gallery-wrapper,
.seo-carousel-wrapper {
	color-scheme: light;
	--lp-text: var(--dh-text, #333333);
	--lp-background: var(--dh-background, #f9f9f9);
	--lp-surface: var(--dh-surface, #ffffff);
	--lp-border: var(--dh-border, #bbbbbb);
	--lp-accent: var(--dh-accent, #c65d07);
	--lp-muted: color-mix(in srgb, var(--lp-text) 62%, transparent);
	--lp-link: var(--lp-muted);
	--lp-control: var(--dh-control, #e5e5e5);
	--lp-control-hover: color-mix(in srgb, var(--lp-control) 82%, var(--lp-text) 18%);
}

/* Culoca search: layout + Hub tokens (--dh-*), theme-universal (no Divi). */
.dirschl-lp-culoca-search {
	margin: 0 0 1.25rem;
	width: 100%;
	max-width: min(100%, 36rem);
}

.dirschl-lp-culoca-search__label {
	display: block;
	margin-bottom: 0.5rem;
}

.dirschl-lp-culoca-search__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
}

.dirschl-lp-culoca-search__input,
.dirschl-lp-culoca-search .dirschl-hub-css-preview-input {
	flex: 1 1 12rem;
	min-width: 0;
	max-width: 100%;
	scroll-margin-top: 1.25rem;
}

.dirschl-lp-culoca-search__input,
.dirschl-lp-culoca-search input[type="search"],
.dirschl-lp-culoca-search .dirschl-hub-css-preview-input {
	box-sizing: border-box;
	min-height: 2.85rem;
	padding: 0.7rem 0.9rem;
	font-size: 1rem;
	line-height: 1.35;
	background: var(--dh-input, var(--dh-surface));
	color: var(--dh-text);
	border: 1px solid var(--dh-border);
	border-radius: 8px;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.dirschl-lp-culoca-search__input:focus,
.dirschl-lp-culoca-search input[type="search"]:focus {
	outline: 2px solid color-mix(in srgb, var(--dh-accent, #2271b1) 45%, transparent);
	outline-offset: 1px;
}

.dirschl-lp-culoca-search__submit {
	flex: 0 0 auto;
	box-sizing: border-box;
	min-height: 2.85rem;
	padding: 0.7rem 1.15rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	border-radius: 8px;
	border: 1px solid color-mix(in srgb, var(--dh-accent, #2271b1) 84%, #000 16%);
	background: var(--dh-accent, #2271b1);
	color: var(--dh-text, #fff);
	box-shadow: none;
	text-shadow: none;
	background-image: none;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dirschl-lp-culoca-search__submit:hover,
.dirschl-lp-culoca-search__submit:focus {
	background: color-mix(in srgb, var(--dh-accent, #2271b1) 88%, #000 12%);
	border-color: color-mix(in srgb, var(--dh-accent, #2271b1) 72%, #000 28%);
	box-shadow: none;
	outline: none;
}

/* Optional Hub / WP button classes without 3D chrome */
.dirschl-lp-culoca-search .button.button-primary {
	border-radius: 8px;
	box-shadow: none;
	text-shadow: none;
	background-image: none;
	min-height: 2.85rem;
}

/* Culoca embed gallery: full motif visible, blurred letterbox (portrait + landscape). */
.dirschl-lp-culoca-gallery .dlp-item > a:not(.dlp-card-link),
.dirschl-lp-culoca-gallery .dlp-item--card-hit .dlp-media {
	display: block;
	position: relative;
	overflow: hidden;
	background: var(--lp-surface, #f4f4f4);
}

.dirschl-lp-culoca-gallery .dlp-item > a:not(.dlp-card-link)::before,
.dirschl-lp-culoca-gallery .dlp-item--card-hit .dlp-media::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--culoca-thumb-bg);
	background-size: cover;
	background-position: center;
	transform: scale(1.08);
	filter: blur(14px) saturate(0.9);
	opacity: 0.5;
	pointer-events: none;
	z-index: 0;
}

.dirschl-lp-culoca-gallery .dlp-item .dlp-image,
.dirschl-lp-culoca-gallery .dlp-item .dlp-img-container .dlp-image,
.dirschl-lp-culoca-gallery .dlp-item--card-hit .dlp-media .dlp-image {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	max-height: min(70vh, 520px);
	aspect-ratio: auto;
	object-fit: contain;
	object-position: center;
	background: transparent;
}

/* Unified card-hit renderer: contain inside landscape frame, blur fills gaps */
.dirschl-lp-culoca-gallery .dlp-item--card-hit .dlp-media {
	display: flex;
	align-items: center;
	justify-content: center;
	contain: none;
}

.dirschl-lp-culoca-gallery .dlp-item--card-hit .dlp-media .dlp-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	margin: 0 !important;
	object-fit: contain;
	object-position: center;
	transform: scale(1);
	transform-origin: center center;
	transition: transform 0.3s ease-in-out;
}

.dirschl-lp-culoca-gallery .dlp-item--card-hit:hover .dlp-media .dlp-image,
.dirschl-lp-culoca-gallery .dlp-item--card-hit:focus-within .dlp-media .dlp-image {
	transform: scale(1.05);
}

.dirschl-lp-culoca-gallery .dlp-item > a:not(.dlp-card-link) .dlp-image {
	transition: transform 0.3s ease-in-out;
	transform-origin: center center;
}

.dirschl-lp-culoca-gallery .dlp-item > a:not(.dlp-card-link):hover .dlp-image,
.dirschl-lp-culoca-gallery .dlp-item > a:not(.dlp-card-link):focus-within .dlp-image {
	transform: scale(1.05);
}

/* Carousel / hero: cap tall portrait motifs in the track */
.dlp-carousel.dirschl-lp-culoca-gallery .dlp-item .dlp-image,
.dlp-carousel.dirschl-lp-culoca-gallery .dlp-item--card-hit .dlp-media,
.dlp-hero.dirschl-lp-culoca-gallery .dlp-item .dlp-image {
	max-height: min(65vh, 420px);
}

.dlp-carousel.dirschl-lp-culoca-gallery .dlp-item--card-hit .dlp-media .dlp-image {
	max-height: none;
}