/* display: swap to prevent font-flickering during pageload */
@font-face {
  font-family: "ct_font_e_s__peak__regular";
  src: url("/wp-content/uploads/2025/09/ESPeak-Regular.woff2") format("woff2");
  font-display: swap;
}

/*** layout ***/
/* **wide-width in narrow container**
 * max site width: 1360px
 * narrow width: 768px
 * offset: (1360-768)/2 */
:root {
  --theme-wide-offset: 296px;
	--wp--preset--font-size--small: 16px;
	--wp--preset--font-size--large: clamp(22px, 1.375rem + ((1vw - 3.2px) * 0.125), 24px);
	--wp--preset--font-size--x-large: clamp(30px, 1.875rem + ((1vw - 3.2px) * 0.188), 32px);
}

/* breakout right (slider) */
@media (min-width: 1024px) {
  .breakout--right {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
  }
}

/*** mainNav ***/
/* footer */
.ct-footer a:hover {
	text-decoration: underline;
}

/* custom styling */
#menu-diselva-mainnavigation .ct-menu-link,
#menu-diselva-mainnavigation-en .ct-menu-link {
  border: 1px solid #ffffff;         		transition: all 0.3s ease;
}

/* hover & active */
#menu-diselva-mainnavigation .ct-menu-link:hover,
#menu-diselva-mainnavigation .ct-menu-link:active,
#menu-diselva-mainnavigation li.current-menu-item > a,
#menu-diselva-mainnavigation-en .ct-menu-link:hover,
#menu-diselva-mainnavigation-en .ct-menu-link:active,
#menu-diselva-mainnavigation-en li.current-menu-item > a{
  border-color: #1a524b;
}

.current-lang {
	--theme-link-initial-color: var(--theme-palette-color-1) !important;
}

.current-lang a span {
	font-weight: bold;
}

/* filter blog archive */
.ct-dynamic-filter a {
  border: 1px solid #ffffff;         		transition: all 0.3s ease;
}

.ct-dynamic-filter a:hover,
.ct-dynamic-filter a:active,
.ct-dynamic-filter a.active {
	border-color: #fff;
}

.ct-dynamic-filter a {
	border-color: var(--theme-palette-color-1);
}

.entry-card .entry-title {
  text-transform: unset !important;
}


.entry-card .entry-button {
  font-size: 16px !important;
	color: var(--theme-palette-color-1) !important;
}

.entry-card .entry-button:hover {
	color: var(--theme-palette-color-2) !important;
}

/* header cta*/
.ct-header-cta[data-id="GrLson"] {
	position: absolute;
	top: 0;
}

.btn__cta--interest .ct-icon {
	border-radius: 50px;
	width: 30px;
	height: 30px;
	padding: 8px;
	margin-left: 5px;
	background: #fff;
	border: 1px solid #fff;
}

.btn__cta--interest .ct-icon path {
	fill: var(--theme-button-background-initial-color
);
}

.btn__cta--interest:hover {
	border-top-color: transparent;
}

.btn__cta--interest:hover .ct-icon {
	border-color: var(--theme-button-background-initial-color
);
}


/*** typo ***/
/* @Ursin, was ist das? */
[class*=ct-toggle-close][data-type=type-3],[class*=ct-toggle-close]:not([data-type=type-1])  {
    border-radius: 50px !important;
    width: 30px;
    height: 30px;
    padding: 8px !important;
    margin: 15px;
    background: #fff;
    border: 1px solid #fff;
}

.parent-close-button:hover {
  color: #000; /* Color on hover */
}

/* button outline */
.is-style-outline .wp-block-button__link {
	border-width: 1px !important;	
}
.is-style-outline .wp-block-button__link:hover {
	color: var(--theme-palette-color-1) !important;
	border-color: var(--theme-palette-color-1) !important;
}

/* h2 negative indent */
@media (min-width: 1080px) {
	h2,
	.h1--h2 {
		position: relative;
		left: -100px;
		min-width: calc(100% + 100px); 
	}
	
	/* no negative indent for teaser and EssentialBlocks */
	.teaser h2,
	.team__detail h2,
	[class^="eb-"] h2, 
	[class*=" eb-"] h2 {
		min-width: unset;
		left: unset;
	}
	
	/* no negative indent for h2 in blog posts */
	.post h2 {
		min-width: unset;
	}
}

/*** elements ***/
/* separator line */
.wp-block-separator {
	width: 100%;
	height: 0 !important;
	background: transparent !important;
	margin-top: 0;
	margin-bottom: 0;
	border-top: 1px solid  var(--theme-palette-color-1) !important;
}

/* tags*/
.taxonomy-post_tag {
	display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tags__team, 
.tags__expert-articles {
	flex-direction: row;
	flex-wrap: wrap;
}
.tags__team a {
	pointer-events: none;
}
.taxonomy-post_tag.wp-block-post-terms a,
.tags__expert-articles span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
  padding: 5px 15px;
	border: 1px solid var(--theme-palette-color-1);
  border-radius: var(--theme-button-border-radius);
  background-color: #fff;
  color: var(--theme-palette-color-1);
	margin: 0 10px 10px 0;
}

.taxonomy-post_tag.wp-block-post-terms a:hover {
    color: var(--theme-palette-color-2);
  border-color: var(--theme-palette-color-2);
}
.taxonomy-post_tag .wp-block-post-terms__separator {
	display: none;
}

.tags__expert-articles span {
	font-size: 14px;
	line-height: 1;
}

/* teaser */
.teaser__col--img {
	display: none !important;
}
@media (min-width: 768px) {
	.teaser__col--img {
		display: block !important;
	}
}

/* lists (.wp-block-list) */
.wp-block-list {
  margin: 1.5em 0; 
  padding-left: 1.5em;
}

.wp-block-list li {
  margin-bottom: 0.75em;
}

.wp-block-list li::marker {
}

.wp-block-list ul,
.wp-block-list ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

/* pixel svg */
.svg__pixel {
	display: none;
}
@media (min-width: 768px) {
	.svg__pixel {
		display: block;
	}
}

/* logowall */
.logowall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;	
}

.logowall figure {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  padding: 0.2em 0.5em ;
  background: #fff;
}

.logowall figure a {
	display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logowall figure img {
  max-height: 100%;  
  max-width: 100%;
  object-fit: contain; 
  height: auto;
  width: auto;
}

@media (min-width: 768px) {
  .logowall {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;	
  }

  .logowall figure {
    height: 110px;
  }
}
@media (min-width: 1080px) {
	.logowall {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;	
  }
}

/*** helper ***/
.is-relative {
	position: relative;
}


/*** overwrite EssentialBlocks styling  ***/
/* force ALL EssentialBlocks to use Diselva font ES PEak */
[class^="eb-"]:not(.eb-accordion-icon),
[class*=" eb-"]:not(.eb-accordion-icon) {
  font-family: var(--theme-font-family) !important;
}


.wp-block-essential-blocks-accordion-item {
	border-top-width: 0 !important;
	border-bottom-width: 1px !important;
	border-left-width: 0 !important;
	border-right-width: 0 !important;
}
.wp-block-essential-blocks-accordion-item:last-child {
	border-bottom-width: 0 !important;
}
@media (min-width: 1025px) {
	.wp-block-essential-blocks-accordion-item {
	border-bottom-width: 0 !important;
	border-right-width: 1px !important;
}
}

.ebpg-pagination-button {
	margin-top: 25px !important;
	margin-bottom: 25px !important;
	padding: 10px 12px !important;
	cursor: pointer !important;
}

/* accordion */
.accordion__horizontal .fa-minus {
	display: none;
}

.accordion__horizontal .eb-accordion-content-wrapper {
	scrollbar-width: none;
}

.accordion__horizontal .eb-accordion-content p, .accordion__horizontal .eb-accordion-content li {
	font-size: var(--theme-font-size) !important;
	line-height: var(--theme-line-height) !important;
}

/* linklist */
.list__links {
	gap: 0.5em;
}

.list__links p {
	width: 100%;
}

.list__links a {
	display: flex;
	width: 100%;
	align-items: center;
	text-decoration: none;
}

.list__links a:hover {
	color: var(--theme-palette-color-2);
}
.list__links a:hover::after {
	background: no-repeat center/contain     url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0ibm9uZSI+PHBhdGggc3Ryb2tlPSIjZjI3NzJjIiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIiBkPSJNMS4xODUgNy45ODggMTUuMjQgNy45NW0wIDBMOC4xOTMuOTRNMTUuMjQgNy45NWwtNy4wMDggNy4wNDciLz48L3N2Zz4=");
}

.list__links a::after {
  content: "";
  display: flex;
  width: 16px;
  height: 16px;
  margin-left: auto; 
	margin-right: 0.5em;
	background: no-repeat center/contain url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0ibm9uZSI+PHBhdGggc3Ryb2tlPSIjMUE1MjRCIiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIiBkPSJNMS4xODUgNy45ODggMTUuMjQgNy45NW0wIDBMOC4xOTMuOTRNMTUuMjQgNy45NWwtNy4wMDggNy4wNDciLz48L3N2Zz4=");
}

/* keywords Abbinder */
.section__keywords p {
	max-width: unset !important;
}

.eb-accordion-content {
	padding: 0 !important;
}

.fa-solid, .fas {
	font-weight: normal !important;
}

/* people, projects carousel */
.carousel__people img,
.carousel__projects img {
	border-radius: 0 !important;
	margin-bottom: 15px;
}
.carousel__people > div,
.carousel__people > div *,
.carousel__projects > div,
.carousel__projects > div *{
	background-color: transparent !important;
}

/* hero carousel */
.carousel__hero > a,
.carousel__hero > a *, 
.carousel__hero > div,
.carousel__hero > div *{
	text-decoration: none !important;
}

.carousel__hero img,
.carousel__hero .ebpg-entry-thumbnail::after {
  border-radius: 0 !important;
}

.carousel__hero .ebpg-entry-thumbnail {
	position: relative;
}

.carousel__hero .ebpg-entry-thumbnail::after {
	  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: linear-gradient(
  0deg,
  #dfecf9 0 110px,
  transparent 100%
);
  pointer-events: none; 
}

/* carousel__hero linked card hack */
.carousel__hero--cover {
	position: relative;
	display: flex;
}

.carousel__experience article {
	position: relative;	
}

.carousel__hero--cover p,
.carousel__experience p,
.carousel__projects--home p {
	color: var(--theme-palette-color-1) !important;
}
.carousel__hero--cover h3:hover + p,
.carousel__experience h3:hover + p {
	color: var(--theme-palette-color-9) !important;
}
.carousel__hero--cover::after {
	  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: linear-gradient(
  0deg,
  #dfecf9 0 110px,
  transparent 100%
);
  pointer-events: none; 
}

.carousel__hero--cover a::after,
.carousel__experience h3 a::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
}

.carousel__hero--cover .wp-block-cover__inner-container {
	margin-top: auto;	
}

.carousel__hero--cover .wp-block-cover__inner-container,
.carousel__hero--cover .wp-block-cover__inner-container > div, 
.carousel__hero--cover .wp-block-cover__inner-container > h3,
.carousel__hero--cover .wp-block-cover__inner-container > a {
	position: static;
}

/* new carousel home */
.carousel__projects--home .flexy-arrow-prev,
.carousel__projects--home .flexy-arrow-next,
.carousel__projects--hero .flexy-arrow-prev,
.carousel__projects--hero .flexy-arrow-next,
.carousel__expert-articles .flexy-arrow-prev,
.carousel__expert-articles .flexy-arrow-next,
.carousel__experience .flexy-arrow-prev,
.carousel__experience .flexy-arrow-next {
	opacity: 1 !important;
	--translate-x: 0 !important;
}

/* carousel experts */
.carousel__expert-articles .flexy-container[data-flexy*=no] .flexy>[class*=flexy-arrow] {
	visibility: visible !important;		
}

.carousel__expert-articles .flexy-arrow-prev,
.carousel__expert-articles .flexy-arrow-next {
	top: calc(100% + 15px);
	border: 1px solid var(--theme-palette-color-1);
}
.carousel__expert-articles .flexy-arrow-prev:hover svg,
.carousel__expert-articles .flexy-arrow-next:hover svg {
		fill: var(--theme-palette-color-7);	
}
.carousel__expert-articles .flexy-arrow-prev svg,
.carousel__expert-articles .flexy-arrow-next svg {
	fill: var(--theme-palette-color-1);	
}
.carousel__expert-articles .flexy-arrow-next {
	right: calc(50% - 50px);	
}
.carousel__expert-articles .flexy-arrow-prev {
	left: calc(50% - 50px);	
}

.carousel__expert-articles--tile {
	display: flex;
	flex-direction: column;
}

.carousel__expert-articles .wp-block-read-more {
	position: relative;
	display: inline-flex;
	margin-top: auto;
	align-items: center;
}
.carousel__expert-articles .wp-block-read-more:hover {
	color: var(--theme-palette-color-2) !important;
}
.carousel__expert-articles .wp-block-read-more:hover::after {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iI2YyNzcyYyI+PHBhdGggZD0iTTIxLjE4NzUgOS4yODEyNSBMMTkuNzgxMjUgMTAuNzE4NzUgTDI0LjA2MjUgMTUgTDQgMTUgTCA0IDE3IEwyNC4wNjI1IDE3IEwxOS43ODEyNSAyMS4yODEyNSBMMjEuMTg3NSAyMi43MTg3NSBMMjcuOTA2MjUgMTYgWiIvPjwvc3ZnPg==");
}
.carousel__expert-articles .wp-block-read-more::after {
	  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
	margin-left: .5em;
	  background: no-repeat center/contain url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iIzFhNTI0YiI+PHBhdGggZD0iTTIxLjE4NzUgOS4yODEyNSBMMTkuNzgxMjUgMTAuNzE4NzUgTDI0LjA2MjUgMTUgTDQgMTUgTCA0IDE3IEwyNC4wNjI1IDE3IEwxOS43ODEyNSAyMS4yODEyNSBMMjEuMTg3NSAyMi43MTg3NSBMMjcuOTA2MjUgMTYgWiIvPjwvc3ZnPg==");

}

/* heros */
.hero__home {
	margin-top: -50px !important;
}

.hero__home h1 {
	position: relative;
	z-index: 10;
}

.hero__home figure {
	margin-top: -50%;
	width: 80%;
	margin-left: auto;
	opacity: .8;
}

@media (min-width: 768px) {
	.hero__home figure {
		margin-top: -20%;
		width: 100%;
		opacity: 1;
	}
}

.hero__standard {
	min-height: unset !important;
}

@media (min-width: 768px) {
	.hero__subpages h1 {
		max-width: var(--theme-narrow-container-max-width) !important;
		margin-left: 0 !important;
	}
}

/* team detail */
.hero__team {
	display: flex;
}
.team__detail {
	order: 1;
}
.team__media {
	order: 2;
}
@media (min-width: 768px) {
	.team__detail {
		order: 2;
	}
	.team__media {
		order: 1;
	}
}