/*Typo*/
body,
p,
span,
li,
a {
	font-size: clamp(18px, 1.2vw, 23px);
	line-height: clamp(26px, 1.8vw, 35px);
	font-weight: 400;
	color: #000000;
	font-family: "PT Sans", Helvetica, sans-serif;
}

h2,
.home h2 {
	margin-top: 0;
	font-size: clamp(36px, 2.6vw, 50px);
	line-height: clamp(40px, 2.86vw, 55px);
	font-weight: 600;
	color: #0068B4;
	font-family: Calibri;
	margin-bottom:10px;
}

.col-1 h1,
.cols-2 h1,
.detail-page h1 {
	margin: 0 0 50px;
	color: #0068B4;
	font-family: "Calibri", Arial, sans-serif;
	font-size: 50px;
	font-weight: 600;
	line-height: 55px;
}

@media only screen and (max-width: 990px) {
	.col-1 h1,
	.cols-2 h1,
	.detail-page h1 {
		margin-bottom: 40px;
		font-size: 42px;
		line-height: 46px;
	}
}

@media only screen and (max-width: 480px) {
	.col-1 h1,
	.cols-2 h1,
	.detail-page h1 {
		margin-bottom: 32px;
		font-size: 36px;
		line-height: 40px;
	}
}

h3 {
	margin-top: 0;
	font-family: "Calibri";
	color: #0068B4;
	font-size: 35px;
	line-height: 1.2;
	font-weight: 600;
}

h4 {
	margin-top: 0;
	margin-bottom: 15px;
	font-family: "Calibri", Arial, sans-serif;
	color: #0068B4;
	font-size: 28px;
	line-height: 38px;
	font-weight: 600;
}

@media only screen and (max-width: 990px) {
	h4 {
		font-size: 26px;
		line-height: 34px;
	}
}

@media only screen and (max-width: 480px) {
	h4 {
		font-size: 24px;
		line-height: 32px;
	}
}

h5 {
	margin-top: 0;
	font-size: 15px;
	line-height: 21px;
	font-weight: 400;
	color: #000000;
	font-family: Calibri;
}
.cols-3-inner p{
  	font-size: clamp(18px, 1.2vw, 23px);
	line-height: clamp(26px, 1.8vw, 35px);
  	margin: 23px 0;
  
  &:has(>a){
    margin: 12px 0;
    
    >a{
      font-size: clamp(18px, 1.2vw, 23px);
	line-height: clamp(26px, 1.8vw, 35px);
      font-family: "PT Sans";
    }
  }
}

.frame-default a {color: #2B68B4; text-decoration:underline;}

/*Header*/
header {
	position: relative;

	#topbox {
		padding-top: 32px;
		padding-bottom: 30px;

		#searchform {
			display: none;
		}
	}

	#topnav {
		background-color: #2B68B4;
      
      .violettmodern &{
        background-color: #A61280;
      }
      .rot &{
        background-color: #D9010F;
      }

		&>ul>li {
			&>a {
				padding: 18px 43px;
				text-transform: none;
				font-size: 25px;
				font-family: Calibri;
				font-weight: 600;
				line-height: 36px;
			}

			.dropdown {
				padding-top: 30px;

				a {
					font-family: "Calibri";
					font-size: 18px;
					color: #2B68B4;
					font-weight: 600;
					line-height: 22px;
					padding: 12px 0;
				}

				li.act {
					&>a {
						color: #A61280;
					}
				}
			}
		}
	}
}

/* MultiBK section switcher */
#multinav {
	position: relative;
	background: #F3F5F7;
	border-bottom: 1px solid #DCE1E5;
	font-family: "PT Sans", Helvetica, sans-serif;
}

#multinav > .section-inner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	width: 100%;
	max-width: 1340px;
	min-height: 42px;
	margin: 0 auto;
	padding: 4px 30px;
	position: relative;
}

#multinav .multinav-label {
	color: #4F4F4F;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
}

#multinav .dropdown {
	display: none;
}

#multinav ul {
	position: static;
	display: flex;
	align-items: center;
	gap: 3px;
	width: auto;
	margin: 0;
	padding: 3px;
	background: #FFF;
	border: 1px solid #D4DAE0;
	border-radius: 999px;
	list-style: none;
}

#multinav li {
	margin: 0;
	padding: 0;
}

#multinav li > a {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	margin: 0;
	padding: 5px 16px;
	border-radius: 999px;
	color: #0068B4;
	font-family: "PT Sans", Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
	text-transform: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

#multinav li > a:hover,
#multinav li > a:focus-visible {
	background: rgba(0, 104, 180, 0.12);
	color: #004F89;
	text-decoration: none;
}

#multinav li.is-active > a,
#multinav li > a[aria-current="page"],
#multinav li.is-active > a:hover,
#multinav li.is-active > a:focus-visible {
	background: #0068B4;
	color: #FFF;
}

#multinav li > a:focus-visible,
#multinav .dropdown:focus-visible {
	outline: 3px solid #004F89;
	outline-offset: 2px;
}

@media (min-width:991px) {
	#multinav {
		position: absolute;
		top: 7px;
		left: 0;
		width: 100%;
		background: transparent;
		border: 0;
		pointer-events: none;
		z-index: 100;
	}

	#multinav > .section-inner {
		gap: 12px;
		min-height: 0;
		padding: 0 30px;
	}

	#multinav .multinav-label {
		font-size: 15px;
		font-weight: 600;
		line-height: 36px;
		pointer-events: auto;
	}

	#multinav ul {
		gap: 3px;
		padding: 3px;
		background: rgba(255, 255, 255, 0.94);
		border: 1px solid #D4DAE0;
		border-radius: 999px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
		pointer-events: auto;
	}

	#multinav li + li {
		border-left: 0;
	}

	#multinav li > a {
		min-height: 34px;
		padding: 5px 16px;
		border-radius: 999px;
		font-size: 16px;
		font-weight: 600;
		line-height: 24px;
	}

	#multinav li > a:hover,
	#multinav li > a:focus-visible {
		background: rgba(0, 104, 180, 0.12);
	}

	#multinav li.is-active > a,
	#multinav li > a[aria-current="page"],
	#multinav li.is-active > a:hover,
	#multinav li.is-active > a:focus-visible {
		background: #0068B4;
		box-shadow: none;
		color: #FFF;
		font-weight: 600;
	}
}

@media (max-width:990px) {
	#multinav > .section-inner {
		min-height: 0;
		padding: 4px 15px;
	}

	#multinav .multinav-label {
		display: none;
	}

	#multinav .dropdown {
		box-sizing: border-box;
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		max-width: 300px;
		min-height: 42px;
		margin: 0;
		padding: 7px 15px;
		background: #FFF;
		border: 1px solid #D4DAE0;
		border-radius: 22px;
		color: #0068B4;
		font-family: "PT Sans", Helvetica, sans-serif;
		font-size: 16px;
		font-weight: 600;
		line-height: 24px;
		cursor: pointer;
	}

	#multinav .dropdown::after {
		content: "";
		box-sizing: border-box;
		width: 9px;
		height: 9px;
		margin: -4px 2px 0 18px;
		padding: 0;
		border: 0;
		border-right: 2px solid #0068B4;
		border-bottom: 2px solid #0068B4;
		font-family: inherit;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	#multinav .open > .dropdown::after {
		margin-top: 4px;
		transform: rotate(225deg);
	}

	#multinav ul {
		position: absolute;
		top: calc(100% - 2px);
		right: 15px;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		width: calc(100% - 30px);
		max-width: 300px;
		padding: 8px;
		background: #FFF;
		border-radius: 14px;
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
		z-index: 1000;
	}

	#multinav .open > ul {
		display: flex;
	}

	#multinav li,
	#multinav li > a {
		width: 100%;
	}

	#multinav li > a {
		justify-content: flex-start;
		min-height: 42px;
		padding: 8px 13px;
		font-size: 16px;
	}
}

#mobile-header {
	background: #2B68B4;
  
       .violettmodern &{
        background-color: #A61280;
      }
      .rot &{
        background-color: #D9010F;
      }
}


/* Buttons from the TYPO3 link browser */
#wrapper a.btn-arrow-left,
#wrapper a.link-button-primary,
#wrapper a.link-button,
#wrapper a.link-button-secondary,
#wrapper .news-single-backlink a {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	min-height: 54px;
	padding: 13px 24px;
	border: 1px solid #0068B4;
	border-radius: 999px;
	font-family: "Calibri", Arial, sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

#wrapper a.btn-arrow-left::before,
#wrapper a.link-button-primary::before,
#wrapper a.link-button::before,
#wrapper a.link-button-secondary::before,
#wrapper .news-single-backlink a::before {
	content: "";
	flex: 0 0 25px;
	width: 25px;
	height: 17px;
	background: url(/fileadmin/1_Medien_Diakonie/bilder/Icons/pfeil_rechts.svg) center / contain no-repeat;
	transition: filter .25s ease;
}

#wrapper a.btn-arrow-left,
#wrapper a.link-button-primary,
#wrapper .news-single-backlink a {
	color: #0068B4;
	background-color: #fff;
}

#wrapper a.btn-arrow-left:hover,
#wrapper a.btn-arrow-left:focus-visible,
#wrapper a.link-button-primary:hover,
#wrapper a.link-button-primary:focus-visible,
#wrapper .news-single-backlink a:hover,
#wrapper .news-single-backlink a:focus-visible {
	color: #fff;
	background-color: #0068B4;
}

#wrapper a.btn-arrow-left:hover::before,
#wrapper a.btn-arrow-left:focus-visible::before,
#wrapper a.link-button-primary:hover::before,
#wrapper a.link-button-primary:focus-visible::before,
#wrapper .news-single-backlink a:hover::before,
#wrapper .news-single-backlink a:focus-visible::before,
#wrapper a.link-button::before,
#wrapper a.link-button-secondary::before {
	filter: brightness(0) invert(1);
}

#wrapper a.link-button,
#wrapper a.link-button-secondary {
	color: #fff;
	background-color: #0068B4;
}

#wrapper a.link-button:hover,
#wrapper a.link-button:focus-visible,
#wrapper a.link-button-secondary:hover,
#wrapper a.link-button-secondary:focus-visible {
	color: #fff;
	border-color: #004F89;
	background-color: #004F89;
}

#wrapper a.btn-arrow-left:focus-visible,
#wrapper a.link-button-primary:focus-visible,
#wrapper a.link-button:focus-visible,
#wrapper a.link-button-secondary:focus-visible,
#wrapper .news-single-backlink a:focus-visible {
	outline: 3px solid #A61280;
	outline-offset: 3px;
}

@media (max-width:990px) {
	#wrapper a.btn-arrow-left,
	#wrapper a.link-button-primary,
	#wrapper a.link-button,
	#wrapper a.link-button-secondary,
	#wrapper .news-single-backlink a {
		min-height: 48px;
		padding: 10px 20px;
		font-size: 21px;
	}
}

/* Point the news detail backlink arrow towards the previous view. */
#wrapper .news-single-backlink a {
	height: auto;
}

#wrapper .news-single-backlink a::before {
	transform: rotate(180deg);
}

.text-frame>p:has(>a:is(.btn-arrow-left, .link-button-primary, .link-button, .link-button-secondary)) {
	margin: 0;
}

.text-frame>p:has(>a:is(.btn-arrow-left, .link-button-primary, .link-button, .link-button-secondary))+p {
	margin-top: 55px;
}

/* Actions from the download extension */
#wrapper .tx-nf-lkdownload .download-item .download-file,
#wrapper .tx-nf-lkdownload .download-item .download-flipbook {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	width: auto;
	min-width: 150px;
	min-height: 42px;
	margin: 0 0 8px;
	padding: 8px 16px;
	border: 1px solid #0068B4;
	border-radius: 999px;
	font-family: "Calibri", Arial, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.tx-nf-lkdownload .download-title {font-size:28px; line-height:1.2;}

#wrapper .tx-nf-lkdownload .download-item .download-file {
	background-color: #fff;
	color: #0068B4;
}

#wrapper .tx-nf-lkdownload .download-item .download-file:hover,
#wrapper .tx-nf-lkdownload .download-item .download-file:focus-visible {
	background-color: #0068B4;
	color: #fff;
}

#wrapper .tx-nf-lkdownload .download-item .download-flipbook {
	margin-top: 0;
	background-color: #0068B4;
	color: #fff;
}

#wrapper .tx-nf-lkdownload .download-item .download-flipbook:hover,
#wrapper .tx-nf-lkdownload .download-item .download-flipbook:focus-visible {
	border-color: #004F89;
	background-color: #004F89;
	color: #fff;
}

#wrapper .tx-nf-lkdownload .download-item .download-file:focus-visible,
#wrapper .tx-nf-lkdownload .download-item .download-flipbook:focus-visible {
	outline: 3px solid #A61280;
	outline-offset: 3px;
}

#wrapper .tx-nf-lkdownload .download-item .download-file .icon,
#wrapper .tx-nf-lkdownload .download-item .download-file .icon::before,
#wrapper .tx-nf-lkdownload .download-item .download-flipbook::before {
	padding-right: 0;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	margin-right:2px;
}

#wrapper .tx-nf-lkdownload .download-item .download-date {
	font-family: "PT Sans", Helvetica, sans-serif;
	font-size: 23px;
	font-weight: 400;
	line-height: 35px;
}

#wrapper .tx-nf-lkdownload .download-item .download-date span {
	font-size: inherit;
	line-height: inherit;
}

.link-download {
	display: inline-flex;
	align-items: center;
	line-height: 1.5;
	&::before {
		content: "\f019";
		width: 28px;
		margin-right: 25px;
		display: inline-block;
		font-family: "Font Awesome 5 Free";
		font-size: 23px;
		font-style: normal;
		font-weight: 900;
		line-height: 1;
		text-align: center;
		transition: all .4s ease-in-out;
	}
}

/*Breadcrumbs*/
main {
	&>#content {
		padding-top: 0;

		@media (min-width: 1550px) {
			padding-top: 134px;
		}


		&:has(>#specialbar>#breadcrumb) {
			padding-top: 0;

			@media (min-width: 1550px) {
				padding-top: 42px;
			}

			#specialbar {
				margin-bottom: 25px;
			}
		}
	}

	&:has(> #headerimg):not(:has(> #headerimg img)) {
		&>#content {
			padding-top: 0;

			@media (min-width: 1550px) {
				padding-top: 134px;
			}
		}
	}
}




#breadcrumb {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;

	.breadcrumbs-separator {
		margin: 0 10px;
	}
}

#breadcrumb span {
	font-size: 20px;
	font-weight: 400;
	line-height: 32px;
	color: #2B2B2B;
	display: none;

	&.breadcrumbs-home,
	&.breadcrumbs-separator,
	&.cur {
		display: inline-block;
		font-size: 20px;
		font-weight: 400;
		line-height: 32px;
		color: #2B2B2B;
	}

	a {
		font-size: 20px;
		font-weight: 400;
		line-height: 32px;
		color: #2B2B2B;
	}
}

#breadcrumb a,
#breadcrumb .cur {
	font-size: 20px;
	font-weight: 400;
	line-height: 32px;
	color: #2B2B2B;
	margin:0;
}

#breadcrumb .cur {
	margin-left: 10px;
}

#breadcrumb a {
	transition: all 0.3s ease;

	&:hover {
		text-decoration: underline;
	}
}

/*SM-Icons*/
.shariff-col-2 {
	display: none !important;
}

/* Subpage - hide an empty header-image container */
#headerimg:not(:has(img)) {
	display: none !important;
}

.col-1>.col .frame-default {
	&>.text-frame {
		&>h3 {
			margin-bottom: 5px;
		}
	}

	&:has(>.text-frame>h3) {
		margin-bottom: 0;
	}
}

@media (min-width:1340px) {
	#content .cols-3-inner .col {
		width: 29%;
		margin-right: 6%;

		&:last-child {
			margin-right: 0;
		}
	}
}

#content .frame-wrap-inside>.section-inner.cols-3-inner {
	margin: 0 !important;
	padding: 32px 0 0;
  @media only screen and (max-width: 1024px){
    padding: 0;
  }
}

.cols-3-inner .ce-above .ce-gallery {
	margin-bottom: 0px;
	width: 100%;

	@media (max-width:990px) {
		margin: auto;
	}
}

.cols-2-inner p,
.cols-2-inner a {
	font-size: clamp(18px, 1.2vw, 23px);
	line-height: clamp(26px, 1.8vw, 35px);
}

.cols-2-inner .ce-above .ce-gallery img,
.cols-3-inner .ce-above .ce-gallery img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

.cols-3-inner .col .text-frame {
	&>p:has(+p >:is(.btn-arrow-left, .link-button-primary, .link-button, .link-button-secondary)) {
		margin-bottom: 17px;
	}

	@media (max-width:990px) {
		:is(.btn-arrow-left, .link-button-primary, .link-button, .link-button-secondary) {
			margin-left: auto;
			margin-right: auto;
		}

	}
}

/* Card menus for two- and three-column grids */
#content .cols-3-inner.tile-menu,
#content .cols-2-inner.card-menu {
	align-items: flex-start;
	margin-top: 45px !important;
	margin-bottom: 90px !important;
}

.cols-3-inner.tile-menu > .col > .frame,
.cols-2-inner.card-menu > .col > .frame {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-height: 0;
	margin-bottom: 35px !important;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(0, 104, 180, 0.12);
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 4px 12px rgba(26, 48, 69, 0.08);
	text-align: left;
}

.cols-3-inner.tile-menu > .col > .frame > header,
.cols-2-inner.card-menu > .col > .frame > header {
	order: 2;
	width: 100%;
	margin: 0;
}

.cols-3-inner.tile-menu > .col > .frame > header h2,
.cols-3-inner.tile-menu > .col > .frame > header h3,
.cols-3-inner.tile-menu > .col > .frame > header h4,
.cols-2-inner.card-menu > .col > .frame > header h2,
.cols-2-inner.card-menu > .col > .frame > header h3,
.cols-2-inner.card-menu > .col > .frame > header h4 {
	width: 100%;
	margin: 0;
	font-size: 21px;
	line-height: 26px;
}

.cols-3-inner.tile-menu > .col > .frame > header a,
.cols-2-inner.card-menu > .col > .frame > header a {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	width: 100%;
	max-width: 100%;
	min-height: 86px;
	padding: 15px 18px 15px 22px;
	border: 0;
	border-radius: 0;
	background-color: #fff;
	color: #0068B4;
	font-family: "Calibri", Arial, sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 26px;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	transition: background-color .25s ease, color .25s ease;
}

.cols-3-inner.tile-menu > .col > .frame > header a::before,
.cols-2-inner.card-menu > .col > .frame > header a::before {
	content: "";
	order: 2;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	margin-left: auto;
	border-radius: 50%;
	background-color: rgba(0, 104, 180, 0.1);
	background-image: url(/fileadmin/1_Medien_Diakonie/bilder/Icons/pfeil_rechts.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 21px 16px;
	transition: background-color .25s ease, filter .25s ease;
}

.cols-3-inner.tile-menu > .col > .frame > header a:hover,
.cols-3-inner.tile-menu > .col > .frame > header a:focus,
.cols-2-inner.card-menu > .col > .frame > header a:hover,
.cols-2-inner.card-menu > .col > .frame > header a:focus {
	background-color: #0068B4;
	color: #fff;
}

.cols-3-inner.tile-menu > .col > .frame > header a:hover::before,
.cols-3-inner.tile-menu > .col > .frame > header a:focus::before,
.cols-2-inner.card-menu > .col > .frame > header a:hover::before,
.cols-2-inner.card-menu > .col > .frame > header a:focus::before {
	background-color: #fff;
	filter: none;
}

.cols-3-inner.tile-menu > .col > .frame > .ce-textpic,
.cols-3-inner.tile-menu > .col > .frame > .ce-image,
.cols-2-inner.card-menu > .col > .frame > .ce-textpic,
.cols-2-inner.card-menu > .col > .frame > .ce-image {
	order: 1;
	width: 100%;
}

.cols-3-inner.tile-menu .ce-gallery,
.cols-2-inner.card-menu .ce-gallery {
	float: none;
	width: 100%;
	margin: 0 auto !important;
}

.cols-3-inner.tile-menu .ce-row,
.cols-3-inner.tile-menu .ce-column,
.cols-3-inner.tile-menu figure,
.cols-3-inner.tile-menu .image,
.cols-2-inner.card-menu .ce-row,
.cols-2-inner.card-menu .ce-column,
.cols-2-inner.card-menu figure,
.cols-2-inner.card-menu .image {
	width: 100%;
	margin: 0;
}

.cols-3-inner.tile-menu .ce-gallery img {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: cover;
}

.cols-2-inner.card-menu .ce-gallery img {
	display: block;
	width: 100%;
	height: 320px;
	object-fit: cover;
}

.cols-3-inner.tile-menu .ce-bodytext,
.cols-2-inner.card-menu .ce-bodytext {
	box-sizing: border-box;
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 86px;
	margin: 0;
	text-align: left;
}

.cols-3-inner.tile-menu .ce-bodytext p,
.cols-2-inner.card-menu .ce-bodytext p {
	display: flex;
	width: 100%;
	margin: 0;
}

#wrapper .cols-3-inner.tile-menu a.btn-arrow-left,
#wrapper .cols-3-inner.tile-menu a.link-button-primary,
#wrapper .cols-3-inner.tile-menu a.link-button,
#wrapper .cols-3-inner.tile-menu a.link-button-secondary,
#wrapper .cols-2-inner.card-menu a.btn-arrow-left,
#wrapper .cols-2-inner.card-menu a.link-button-primary,
#wrapper .cols-2-inner.card-menu a.link-button,
#wrapper .cols-2-inner.card-menu a.link-button-secondary {
	justify-content: space-between;
	gap: 15px;
	width: 100%;
	min-height: 86px;
	margin-left: 0;
	margin-right: 0;
	padding: 15px 18px 15px 22px;
	border: 0;
	border-radius: 0;
	background-color: #fff;
	color: #0068B4;
	font-size: 21px;
	line-height: 26px;
}

#wrapper .cols-3-inner.tile-menu a.btn-arrow-left::before,
#wrapper .cols-3-inner.tile-menu a.link-button-primary::before,
#wrapper .cols-3-inner.tile-menu a.link-button::before,
#wrapper .cols-3-inner.tile-menu a.link-button-secondary::before,
#wrapper .cols-2-inner.card-menu a.btn-arrow-left::before,
#wrapper .cols-2-inner.card-menu a.link-button-primary::before,
#wrapper .cols-2-inner.card-menu a.link-button::before,
#wrapper .cols-2-inner.card-menu a.link-button-secondary::before {
	order: 2;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	margin-left: auto;
	border-radius: 50%;
	background-color: rgba(0, 104, 180, 0.1);
	background-size: 21px 16px;
	filter: none;
}

#wrapper .cols-3-inner.tile-menu a.btn-arrow-left:hover,
#wrapper .cols-3-inner.tile-menu a.btn-arrow-left:focus,
#wrapper .cols-3-inner.tile-menu a.link-button-primary:hover,
#wrapper .cols-3-inner.tile-menu a.link-button-primary:focus,
#wrapper .cols-3-inner.tile-menu a.link-button:hover,
#wrapper .cols-3-inner.tile-menu a.link-button:focus,
#wrapper .cols-3-inner.tile-menu a.link-button-secondary:hover,
#wrapper .cols-3-inner.tile-menu a.link-button-secondary:focus,
#wrapper .cols-2-inner.card-menu a.btn-arrow-left:hover,
#wrapper .cols-2-inner.card-menu a.btn-arrow-left:focus,
#wrapper .cols-2-inner.card-menu a.link-button-primary:hover,
#wrapper .cols-2-inner.card-menu a.link-button-primary:focus,
#wrapper .cols-2-inner.card-menu a.link-button:hover,
#wrapper .cols-2-inner.card-menu a.link-button:focus,
#wrapper .cols-2-inner.card-menu a.link-button-secondary:hover,
#wrapper .cols-2-inner.card-menu a.link-button-secondary:focus {
	background-color: #0068B4;
	color: #fff;
}

#wrapper .cols-3-inner.tile-menu a.btn-arrow-left:hover::before,
#wrapper .cols-3-inner.tile-menu a.btn-arrow-left:focus::before,
#wrapper .cols-3-inner.tile-menu a.link-button-primary:hover::before,
#wrapper .cols-3-inner.tile-menu a.link-button-primary:focus::before,
#wrapper .cols-3-inner.tile-menu a.link-button:hover::before,
#wrapper .cols-3-inner.tile-menu a.link-button:focus::before,
#wrapper .cols-3-inner.tile-menu a.link-button-secondary:hover::before,
#wrapper .cols-3-inner.tile-menu a.link-button-secondary:focus::before,
#wrapper .cols-2-inner.card-menu a.btn-arrow-left:hover::before,
#wrapper .cols-2-inner.card-menu a.btn-arrow-left:focus::before,
#wrapper .cols-2-inner.card-menu a.link-button-primary:hover::before,
#wrapper .cols-2-inner.card-menu a.link-button-primary:focus::before,
#wrapper .cols-2-inner.card-menu a.link-button:hover::before,
#wrapper .cols-2-inner.card-menu a.link-button:focus::before,
#wrapper .cols-2-inner.card-menu a.link-button-secondary:hover::before,
#wrapper .cols-2-inner.card-menu a.link-button-secondary:focus::before {
	background-color: #fff;
	filter: none;
}

@media (max-width:990px) {
	#content .cols-3-inner.tile-menu,
	#content .cols-2-inner.card-menu {
		margin-top: 30px !important;
		margin-bottom: 55px !important;
	}

	.cols-3-inner.tile-menu > .col > .frame,
	.cols-2-inner.card-menu > .col > .frame {
		min-height: 0;
		margin-bottom: 55px !important;
	}

	.cols-3-inner.tile-menu > .col > .frame > .ce-textpic,
	.cols-3-inner.tile-menu > .col > .frame > .ce-image,
	.cols-2-inner.card-menu > .col > .frame > .ce-textpic,
	.cols-2-inner.card-menu > .col > .frame > .ce-image {
		display: block;
	}

	.cols-3-inner.tile-menu .ce-gallery,
	.cols-3-inner.tile-menu .ce-bodytext,
	.cols-2-inner.card-menu .ce-gallery,
	.cols-2-inner.card-menu .ce-bodytext {
		width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	.cols-2-inner.card-menu .ce-gallery img {
		height: 260px;
	}
}

@media (max-width:767px) {
	.cols-2-inner.card-menu > .col {
		width: 100%;
		margin-right: 0;
		margin-left: 0;
	}

	.cols-2-inner.card-menu > .col:last-child > .frame {
		margin-bottom: 0 !important;
	}
}

@media (max-width:480px) {
	.cols-3-inner.tile-menu .ce-gallery img,
	.cols-2-inner.card-menu .ce-gallery img {
		height: 180px;
	}

	.cols-3-inner.tile-menu > .col > .frame > header a,
	.cols-2-inner.card-menu > .col > .frame > header a,
	#wrapper .cols-3-inner.tile-menu a.btn-arrow-left,
	#wrapper .cols-3-inner.tile-menu a.link-button-primary,
	#wrapper .cols-3-inner.tile-menu a.link-button,
	#wrapper .cols-3-inner.tile-menu a.link-button-secondary,
	#wrapper .cols-2-inner.card-menu a.btn-arrow-left,
	#wrapper .cols-2-inner.card-menu a.link-button-primary,
	#wrapper .cols-2-inner.card-menu a.link-button,
	#wrapper .cols-2-inner.card-menu a.link-button-secondary {
		min-height: 76px;
		padding: 12px 15px 12px 18px;
		font-size: 19px;
		line-height: 24px;
	}

	.cols-3-inner.tile-menu > .col > .frame > header a::before,
	.cols-2-inner.card-menu > .col > .frame > header a::before,
	#wrapper .cols-3-inner.tile-menu a.btn-arrow-left::before,
	#wrapper .cols-3-inner.tile-menu a.link-button-primary::before,
	#wrapper .cols-3-inner.tile-menu a.link-button::before,
	#wrapper .cols-3-inner.tile-menu a.link-button-secondary::before,
	#wrapper .cols-2-inner.card-menu a.btn-arrow-left::before,
	#wrapper .cols-2-inner.card-menu a.link-button-primary::before,
	#wrapper .cols-2-inner.card-menu a.link-button::before,
	#wrapper .cols-2-inner.card-menu a.link-button-secondary::before {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}
}

.frame-layout-1 {
	background-color: rgba(43, 104, 180, 0.1);
}

/* Native base-system accordion (layout 2 / "Accordion") */
.frame-layout-2 > header > h3 {
	box-sizing: border-box;
	width: 100%;
	margin: -8px 0 0;
	padding: 0 70px 18px 37px;
	background: transparent;
	color: #0068B4;
	font-family: "Calibri", Arial, sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
}

.frame-layout-2 > header:hover > h3,
.frame-layout-2 > header.act > h3,
.frame-layout-2 > header.act:hover > h3 {
	background: transparent;
	color: #0068B4;
}

@media only screen and (max-width: 767px) {
	.frame-layout-2 > header > h3 {
		margin-top: -6px;
		padding-right: 55px;
		padding-bottom: 15px;
		padding-left: 20px;
		font-size: 21px;
		line-height: 28px;
	}
}

.col .frame-layout-2 {
	margin-bottom: 23px !important;
}

.frame-layout-2 > header {
	display: block;
	width: 100%;
	background: rgba(43, 104, 180, 0.21);
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.2s ease;
}

.frame-layout-2 > header:hover {
	background: #c7d2df;
}

/* Overrides the dark h2 hover from the global base-system themes. */
.frame-layout-2 > header:hover > h2,
.frame-layout-2 > header > h2:hover,
.frame-layout-2 > header.act:hover > h2 {
	background: transparent;
	color: #0068B4;
}

.frame-layout-2 > header:active {
	transform: scale(0.995);
}

.frame-layout-2 > header:focus-visible {
	outline: 3px solid #A61280;
	outline-offset: 3px;
}

.home .frame-layout-2 > header > h2,
.frame-layout-2 > header > h2,
.frame-layout-2 > header.act > h2 {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 66px;
	margin: 0;
	padding: 15px 82px 15px 37px;
	background: transparent;
	color: #0068B4;
	font-family: "Calibri", Arial, sans-serif;
	font-size: 25px;
	font-weight: 600;
	line-height: 36px;
}

.frame-layout-2 > header > h2::before {
	content: none;
}

.frame-layout-2 > header > h2::after,
.frame-layout-2 > header.act > h2::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 37px;
	width: 28px;
	height: 28px;
	margin: 0;
	background: url('/fileadmin/1_Medien_Diakonie/bilder/Icons/plus.svg') center / contain no-repeat;
	transform: translateY(-50%);
	transition:
		transform 0.35s ease,
		opacity 0.25s ease,
		filter 0.25s ease,
		background-image 0s linear 0.15s;
}

.frame-layout-2 > header.act > h2::after {
	background-image: url('/fileadmin/1_Medien_Diakonie/bilder/Icons/minus.svg');
}

.frame-layout-2 > header:hover > h2::after {
	filter: brightness(1.08);
	transform: translateY(-50%) scale(1.08);
}

.frame-layout-2.is-animating > header > h2::after,
.frame-layout-2.is-animating > header:hover > h2::after {
	opacity: 0.65;
	transform: translateY(-50%) rotate(90deg) scale(0.82);
}

.frame-layout-2 > .ce-textpic,
.frame-layout-2 > .text-frame,
.frame-layout-2 > .tx-powermail,
.frame-layout-2 > .user-lkbsaddress-controller,
.frame-layout-2 > .ce-table {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 28px 37px;
	background: rgba(43, 104, 180, 0.07);
}

.frame-layout-2 > .text-frame p,
.frame-layout-2 > .text-frame li,
.frame-layout-2 > .text-frame a {
	background: transparent;
	font-family: "PT Sans", Helvetica, sans-serif;
	font-size: clamp(18px, 1.2vw, 23px);
	font-weight: 400;
	line-height: clamp(26px, 1.8vw, 35px);
}

.frame-layout-2 > .text-frame p:first-child {
	margin-top: 0;
}

.frame-layout-2 > .text-frame p:last-child {
	margin-bottom: 0;
}

.frame-layout-2 > .text-frame a {
	overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
	.frame-layout-2 > header,
	.frame-layout-2 > header > h2::after {
		transition: none;
	}

	.frame-layout-2.is-animating > header > h2::after,
	.frame-layout-2.is-animating > header:hover > h2::after {
		opacity: 1;
		transform: translateY(-50%);
	}
}

@media (max-width:767px) {
	.home .frame-layout-2 > header > h2,
	.frame-layout-2 > header > h2,
	.frame-layout-2 > header.act > h2 {
		min-height: 56px;
		padding: 13px 58px 13px 20px;
		font-size: 21px;
		line-height: 29px;
	}

	.frame-layout-2 > header > h2::after,
	.frame-layout-2 > header.act > h2::after {
		right: 20px;
		width: 24px;
		height: 24px;
	}

	.frame-layout-2 > .ce-textpic,
	.frame-layout-2 > .text-frame,
	.frame-layout-2 > .tx-powermail,
	.frame-layout-2 > .user-lkbsaddress-controller,
	.frame-layout-2 > .ce-table {
		padding: 20px;
	}
}

/* Compact accordion sizing for the detail-page sidebar, including mobile. */
.detail-page__aside .frame-layout-2:not(.frame-space-after-large) {
	margin-bottom: 16px !important;
}

.detail-page__aside .frame-layout-2 > header > h2 {
	min-height: 52px;
	padding: 12px 50px 12px 18px;
	font-size: 20px;
	line-height: 28px;
}

.detail-page__aside .frame-layout-2 > header > h3 {
	margin-top: -4px;
	padding: 0 50px 12px 18px;
	font-size: 18px;
	line-height: 25px;
}

.detail-page__aside .frame-layout-2 > header > h2::after {
	right: 18px;
	width: 20px;
	height: 20px;
}

.detail-page__aside .frame-layout-2 > :is(
	.ce-textpic,
	.text-frame,
	.tx-powermail,
	.user-lkbsaddress-controller,
	.ce-table
) {
	padding: 16px 18px;
	font-size: 16px;
	line-height: 24px;
}

.detail-page__aside .frame-layout-2 > :is(
	.ce-textpic,
	.text-frame,
	.tx-powermail,
	.user-lkbsaddress-controller,
	.ce-table
) :is(p, span, li, a, td, th, dt, dd) {
	font-size: 16px;
	line-height: 24px;
}

/* Legacy accordion from HTML content elements */
.custom-accordion {
	font-family: "Calibri";
}

.custom-accordion .accordion-item {
	margin-bottom: 23px;
}

.custom-accordion .accordion-header {
	width: 100%;
	border: 0;
	background: rgba(43, 104, 180, 0.21);
	padding: 15px 37px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	text-align: left;
	transition: background-color 0.25s ease, transform 0.2s ease;
}

.custom-accordion .accordion-header:hover {
	background: #c7d2df;
}

.custom-accordion .accordion-header:active {
	transform: scale(0.995);
}

.custom-accordion .accordion-title {
	font-size: 25px;
	line-height: 36px;
	font-weight: 600;
	color: #0068B4;
	opacity: 1;
	font-family: Calibri;
}

.custom-accordion .accordion-icon {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	background-image: url('/fileadmin/1_Medien_Diakonie/bilder/Icons/plus.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition:
		transform 0.35s ease,
		opacity 0.25s ease,
		filter 0.25s ease,
		background-image 0s linear 0.15s;
}

.custom-accordion .accordion-header:hover .accordion-icon {
	transform: scale(1.08);
	filter: brightness(1.08);
}

.custom-accordion .accordion-item.is-animating .accordion-icon {
	transform: rotate(90deg) scale(0.82);
	opacity: 0.65;
}

.custom-accordion .accordion-item.is-open .accordion-icon {
	background-image: url('/fileadmin/1_Medien_Diakonie/bilder/Icons/minus.svg');
}

.custom-accordion .accordion-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
	background: rgba(43, 104, 180, 0.07);
  
  	p, a{
    	font-size: clamp(18px, 1.2vw, 23px);
  		line-height: clamp(26px, 1.8vw, 35px);
  		font-weight: 400;
  		color: #000000;
  		font-family: "PT Sans", Helvetica, sans-serif;
  	}
}

.custom-accordion .accordion-item.is-open .accordion-content {
	grid-template-rows: 1fr;
}

.custom-accordion .accordion-content-inner {
	overflow: hidden;
	font-size: 25px;
	line-height: 36px;
	font-family: Calibri;
	font-weight: 400;
	color: #000000;
	padding: 0 37px;
	transition: padding 0.35s ease;

	@media (max-width: 550px) {
		font-size: 19px;
		line-height: 25px;
	}
}

.custom-accordion .accordion-item.is-open .accordion-content-inner {
	padding: 28px 37px;

	@media (max-width: 550px) {
		padding: 18px 27px;
	}
}

/*Sections*/
.frame:has(>.section-footer-menu-1),
.frame:has(>.section-kontakt-1),
.frame:has(>.section-full-bg-lila) {
	margin: 0 !important;
	padding: 0 !important;
	width: 0 !important;
	height: 0 !important;
	flex: 0 !important;
}

.col-1>.col>.section-inner,
.home>.col>.section-inner {
	&.morebk {
		margin-top: 0px !important;
		margin-bottom: 0px !important;
	}

	&:has(.section-footer-menu-1) {
		gap: 40px;
		flex-wrap: nowrap;
		justify-content: space-between;
		padding: 80px 30px !important;

		&::before {
			background: rgba(0, 104, 180, 0.2);
			position: absolute;
			top: 0;
			left: -25%;
			content: "";
			width: 150%;
			height: 100%;
			z-index: 0;
		}

		&>.frame {
			margin-right: 0;
			width: 25%;
			margin-bottom: 0;
			flex: 1;
			z-index: 2;

			h3 {
				padding: 0;
				font-size: 30px;
				font-weight: 600;
				line-height: 32px;
				margin-bottom: 29px;
				background: none;
				color: #000;
				font-family: "PT Sans";
			}

			p {
				margin: 0;
			}

			a {
				color: #2B2B2B;
				font-size: 20px;
				line-height: 32px;
				font-weight: 400;
				text-transform: none;
				background: none;
				margin: 0;
				padding: 0;
				margin-bottom: 0px;
				font-family: "PT Sans";

				&::after {
					display: none;
				}
			}

			@media (max-width: 990px) {
				flex-basis: 30%;
			}

			@media (max-width: 767px) {
				flex-basis: 80%;
			}
		}

		@media (max-width: 990px) {
			flex-wrap: wrap;
		}
	}

	&:has(.section-full-bg-lila) {
		padding: 80px 30px !important;
		position: relative;
		display: flex;
		align-items: center;

		&::before {
			background: #A61280;
			position: absolute;
			top: 0;
			left: -25%;
			content: "";
			width: 150%;
			height: 100%;
			z-index: -1;
		}

		&>.frame:has(.text-frame) {
			width: 100%;

			h2 {
				padding: 0;
				font-size: clamp(42px, 3.125vw, 60px);
				line-height: clamp(46px, 3.3vw, 65px);
				font-weight: 400;
				margin-bottom: 12px;
				background: none;
				color: #fff;
				font-family: "PT Sans";

				strong {
					font-weight: 600px;
				}
			}

			p {
				color: #fff;
			}
		}
	}
  	&:has(.section-footer-menu-1.section-full-bg-lila-light) {	

		&::before {
			background: #A6128033;			
		}	
	}
}

/* Use the project heading color on light full-width backgrounds. */
.cols-2-inner.full-2 .cols {background-color: rgba(43, 104, 180, 0.1);}
.cols-2-inner.full-2 .cols h3 {color: #0068B4;}
.cols-2-inner.full-2 .cols p {color:#000; font-size: clamp(18px, 1.2vw, 23px); line-height: clamp(26px, 1.8vw, 35px);}
.cols-2-inner.full-2:has(.section-full-bg-lightblue) h3,
.cols-2-inner.full-2:has(.section-full-bg-lightlila) h3,
.cols-2-inner.full-2:has(.bg-lightblue) h3,
.cols-2-inner.full-2:has(.bg-lightlila) h3,
.cols-2-inner.full-2:has(.bg-yellow) h3 {
	color: #0068B4;
}

.cols-2-inner.full-2 {
	margin-bottom: 0px !important;

	&:has(.section-full-bg-blue) {
		&>div {
			background-color: #0068B4;

			h3 {
				font-size: clamp(28px, 2.4vw, 45px);
				line-height: clamp(33px, 2.6vw, 50px);
				font-weight: 400;
				margin-bottom: 12px;
				color: #fff;
			}

			p {
				color: #fff;
				font-size: clamp(22px, 1.6vw, 30px);
				line-height: clamp(28px, 2vw, 39px);
				font-family: 'PT Sans';
			}

			.frame-type-image {
				max-height: unset;
				overflow: auto;

				figure {
					display: block;
				}
			}
		}

		@media (max-width:990px) {
			margin-top: 0;
		}
	}

	&:has(.section-full-bg-lightblue) {
		&>div {
			background-color: rgba(0, 104, 180, 0.1);

			h2 {
				font-size: clamp(42px, 2.9vw, 55px);
				line-height: clamp(46px, 3.3vw, 65px);
				font-weight: 400;
				margin-bottom: 12px;
				color: #0068B4;
			}

			p {
				color: #000;
				font-size: clamp(18px, 1.2vw, 23px);
				line-height: clamp(26px, 1.8vw, 35px);
				font-family: 'PT Sans';
              
              &:has(>a){
                &>a{
                  margin-bottom:0;
                }
                +p:has(>a){
                  margin-top:16px;
                  
                  &>a{
                    margin-top:0;
                  }
                }
              }
			}

			&:first-child {
				&>.frame {
					max-width: unset;
					padding: 0 30px 0 16%;
                  
                  @media (max-width:1720px){
                    padding-top: 30px;
                  }

					@media (max-width:990px) {
						padding: 30px;

						&:has(.custom-html-element) {
							padding: 0;
						}
					}
				}
			}
		}

		@media (max-width:990px) {
			margin-top: 0;
		}
      	&:has(.bg-lightlila) {
            &>div {
                background-color: rgba(166, 18, 128, 0.1);
            }
      	}
	}

	&:has(.section-full-bg-lightlila) {
		&>div {
			background-color: rgba(166, 18, 128, 0.1);
			width: 50%;

			&:last-child {

				&>.frame {
					max-width: unset;
                  
                  @media (max-width:1720px) {
                    padding-left:30px;
                  }
				}

				@media (max-width:990px) {
					height: auto;
				}
			}

			h2 {
				font-size: clamp(42px, 2.9vw, 55px);
				line-height: clamp(46px, 3.3vw, 65px);
				font-weight: 400;
				margin-bottom: 12px;
				color: #0068B4;
			}

			p {
				color: #000;
				font-size: clamp(18px, 1.2vw, 23px);
				line-height: clamp(26px, 1.8vw, 35px);
				font-family: 'PT Sans';
			}
		}

		@media (max-width:990px) {
			margin-top: 0;

			img {
				object-position: 0 !important;
			}
		}

		@media (max-width:767px) {
			flex-direction: column;

			&>div {
				width: 100%;
			}
		}
	}

	&:has(.bg-yellow) {
		&>div {
			background-color: rgba(248, 166, 0, 0.14);
		}
	}
  	&:has(.bg-lightblue) {
		&>div {
			background-color: rgba(43, 104, 180, 0.1);
		}
	}
}

/* Keep direct homepage grids aligned with the regular content width. */
#content.home > .col > .frame > .frame-wrap-inside > .cols-2-inner.section-inner {
	box-sizing: border-box;
	padding-right: 30px;
	padding-left: 30px;
}

/* Two-column image menu built with one Text & Image element per column. */
#content .cols-2-inner.tile-menu {
	align-items: flex-start;
	margin-bottom: 90px !important;
	padding-top: 60px;
}

.cols-2-inner.tile-menu > .col > .frame {
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 0 !important;
}

.cols-2-inner.tile-menu .ce-textpic,
.cols-2-inner.tile-menu .ce-gallery,
.cols-2-inner.tile-menu .ce-row,
.cols-2-inner.tile-menu .ce-column,
.cols-2-inner.tile-menu figure,
.cols-2-inner.tile-menu .image {
	box-sizing: border-box;
	width: 100%;
}

.cols-2-inner.tile-menu .ce-textpic {
	position: relative;
}

.cols-2-inner.tile-menu .ce-gallery {
	float: none;
	margin: 0 0 32px;
}

.cols-2-inner.tile-menu .ce-row,
.cols-2-inner.tile-menu .ce-column,
.cols-2-inner.tile-menu figure,
.cols-2-inner.tile-menu .image {
	margin: 0;
}

.cols-2-inner.tile-menu .ce-gallery img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

.cols-2-inner.tile-menu .ce-bodytext {
	position: static;
	width: 100%;
	margin: 0;
}

/* The first RTE paragraph contains the linked image label. */
.cols-2-inner.tile-menu .ce-bodytext > p:first-child {
	position: relative;
	z-index: 2;
	width: fit-content;
	margin: -132px 0 65px 25px;
}

#wrapper .cols-2-inner.tile-menu .ce-bodytext > p:first-child > a.btn-arrow-left,
#wrapper .cols-2-inner.tile-menu .ce-bodytext > p:first-child > a.link-button-primary,
#wrapper .cols-2-inner.tile-menu .ce-bodytext > p:first-child > a.link-button,
#wrapper .cols-2-inner.tile-menu .ce-bodytext > p:first-child > a.link-button-secondary {
	margin: 0;
}

.cols-2-inner.tile-menu .ce-bodytext h2,
.cols-2-inner.tile-menu .ce-bodytext h3,
.cols-2-inner.tile-menu .ce-bodytext h4 {
	margin: 0 0 18px;
	color: #0068B4;
	font-family: "Calibri", Arial, sans-serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 38px;
}

.cols-2-inner.tile-menu .ce-bodytext > p:not(:first-child) {
	margin: 0;
}

@media only screen and (max-width: 990px) {
	#content .cols-2-inner.tile-menu {
		margin-bottom: 60px !important;
		padding-top: 45px;
	}

	.cols-2-inner.tile-menu .ce-bodytext > p:first-child {
		margin-top: -117px;
		margin-bottom: 60px;
	}
}

@media only screen and (max-width: 767px) {
	#content.home > .col > .frame > .frame-wrap-inside > .cols-2-inner.section-inner {
		padding-right: 15px;
		padding-left: 15px;
	}

	#content .cols-2-inner.tile-menu {
		margin-bottom: 35px !important;
		padding-top: 35px;
	}

	.cols-2-inner.tile-menu > .col {
		width: 100%;
		margin-right: 0;
		margin-left: 0;
		margin-bottom: 55px;
	}

	.cols-2-inner.tile-menu > .col:last-child {
		margin-bottom: 0;
	}

	.cols-2-inner.tile-menu .ce-bodytext > p:first-child {
		margin-top: -105px;
		margin-bottom: 55px;
		margin-left: 15px;
	}

	.cols-2-inner.tile-menu .ce-bodytext h2,
	.cols-2-inner.tile-menu .ce-bodytext h3,
	.cols-2-inner.tile-menu .ce-bodytext h4 {
		font-size: 27px;
		line-height: 34px;
	}
}

.col-1>.col .frame-default.frame-type-grid:has(.section-kontakt-1) {
	position: relative;
	padding: 80px 30px !important;

	&::before {
		background: #0068B4;
		position: absolute;
		top: 0;
		left: -25%;
		content: "";
		width: 150%;
		height: 100%;
		z-index: 0;
	}

	&>.frame-wrap-inside {
		z-index: 2;
		position: relative;

		h3 {
			color: #fff;
		}

		p {
			color: #fff;
		}
	}

	.full-2 {
		margin-bottom: 25px !important;

		.cols {
			background: transparent;

			&.cols-50-inner-left {
				.frame-type-text {
					position: static;
					max-width: unset;
					padding: 0 100px 0 30%;
					transform: translateY(0);

				}
			}

			&.cols-50-inner-right {
				.frame-type-text {
					position: static;
					max-width: unset;
					padding: 0 20% 0 10px;
					transform: translateY(0);
				}
			}

			p {
				font-size: 23px;
				font-weight: 400;
				font-family: 'PT Sans';
				line-height: 35px;
			}
		}
	}
}

/* Centrally maintained footer navigation */
.footer-navigation {
	background-color: rgba(0, 104, 180, 0.2);
}

.violettmodern .footer-navigation {
	background-color: rgba(166, 18, 128, 0.2);
}

.footer-navigation__inner {
	display: flex;
	flex-wrap: nowrap;
	gap: 40px;
	width: 100%;
	max-width: 1340px;
	margin: 0 auto;
	padding: 70px 30px;
}

.footer-navigation__column {
	flex: 1;
	min-width: 0;
}

.footer-navigation__column .frame-default {
	margin-bottom: 0;
}

footer .footer-navigation .footer-navigation__column .frame h3 {
	margin: 0 0 24px;
	padding: 0;
	color: #000;
	background: none;
	font-family: "PT Sans", Helvetica, sans-serif;
	font-size: 26px;
	font-weight: 600;
	line-height: 30px;
}

.footer-navigation__column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-navigation__column li {
	margin: 0;
}

footer .footer-navigation .footer-navigation__column .frame a,
footer .footer-navigation .footer-navigation__column .frame a span {
	margin: 0;
	padding: 0;
	color: #2B2B2B;
	background: none;
	font-family: "PT Sans", Helvetica, sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 32px;
	text-decoration: none;
	text-transform: none;
}

footer .footer-navigation .footer-navigation__column .frame a::after {
	display: none;
}

footer .footer-navigation .footer-navigation__column .frame a:hover,
footer .footer-navigation .footer-navigation__column .frame a:focus,
footer .footer-navigation .footer-navigation__column .frame a:hover span,
footer .footer-navigation .footer-navigation__column .frame a:focus span {
	color: #0068B4;
	text-decoration: underline;
}

.violettmodern footer .footer-navigation .footer-navigation__column .frame a:hover,
.violettmodern footer .footer-navigation .footer-navigation__column .frame a:focus,
.violettmodern footer .footer-navigation .footer-navigation__column .frame a:hover span,
.violettmodern footer .footer-navigation .footer-navigation__column .frame a:focus span {
	color: #A61280;
}

@media only screen and (max-width: 990px) {
	.footer-navigation__inner {
		flex-wrap: wrap;
		gap: 40px;
		padding-top: 55px;
		padding-bottom: 35px;
	}

	.footer-navigation__column {
		flex: 0 0 calc(50% - 20px);
	}
}

@media only screen and (max-width: 767px) {
	.footer-navigation__inner {
		gap: 35px;
		padding: 45px 15px 20px;
	}

	.footer-navigation__column {
		flex-basis: 100%;
	}

	footer .footer-navigation .footer-navigation__column .frame h3 {
		margin-bottom: 16px;
		font-size: 23px;
		line-height: 28px;
	}
}

/* Server-rendered footer contact */
#contact {
	padding: 0;
	background-color: #fff;
	color: #000;
}

.footer-contact {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	width: 100%;
	max-width: 1340px;
	margin: 0 auto;
	padding: 85px 30px 145px;
}

.footer-contact__logo,
.footer-contact__content {
	flex: 1;
	min-width: 0;
}

.footer-contact__logo {
	text-align: center;
}

.footer-contact__logo a {
	display: inline-block;
}

.footer-contact__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

.footer-contact__content {
	display: flex;
	gap: 50px;
}

.footer-contact__content > div {
	flex: 1;
	min-width: 0;
	font-family: "PT Sans", Helvetica, sans-serif;
	font-size: 23px;
	font-weight: 400;
	line-height: 35px;
}

.footer-contact__content strong {
	font-weight: 400;
}

.footer-contact__content a {
	color: #0068B4 !important;
	font-size: inherit;
	line-height: inherit;
}

.footer-contact__content a:hover,
.footer-contact__content a:focus {
	color: #A61280;
	text-decoration: underline;
}

#contact #metanav {
	padding: 0 30px 32px;
}

#contact #metanav a {
	color: #000;
	font-family: "PT Sans", Helvetica, sans-serif;
	font-size: 23px;
	font-weight: 400;
	line-height: 45px;
}

#contact #metanav a:hover,
#contact #metanav a:focus {
	color: #0068B4;
	text-decoration: underline;
}

.violettmodern #contact #metanav a:hover,
.violettmodern #contact #metanav a:focus {
	color: #A61280;
}

@media only screen and (max-width: 990px) {
	.footer-contact {
		gap: 50px;
		padding: 55px 30px;
	}

	.footer-contact__logo {
		flex: 0 0 30%;
	}

	.footer-contact__content {
		flex: 1;
		flex-wrap: wrap;
		gap: 30px;
	}

	.footer-contact__content > div {
		flex-basis: 100%;
	}

	#contact #metanav li {
		display: block;
	}
}

@media only screen and (max-width: 767px) {
	.footer-contact {
		flex-direction: column;
		align-items: center;
		gap: 35px;
		padding: 50px 15px;
	}

	.footer-contact__logo,
	.footer-contact__content {
		flex: none;
		width: 100%;
	}

	.footer-contact__logo {
		text-align: center;
	}

	.footer-contact__content {
		gap: 25px;
		text-align: center;
	}

	.footer-contact__logo img {
		max-height: 120px;
	}
}

/* Apply consistent table styles throughout the content area. */
#content table {
	margin-top: 32px;

	tr {
		&>td {
			font-weight: 400;
			line-height: 57px;
			color: #000;
			padding-left: 30px;
			padding-top: 0;
			padding-bottom: 0;
			font-size: 25px;
			font-family: 'Calibri';

			&:first-child {
				font-weight: 600;
			}
		}
	}
}

/*Flybar*/
.custom-spenden-flybar {
	position: fixed;
	top: 35%;
	right: 0;
	background: #A61280;
	padding: 26px 35px 26px 42px;
	border-radius: 50px 0 0 50px;
	color: white;
	font-size: 40px;
	font-weight: 600;
	font-family: 'PT Sans';
	line-height: 52px;
	z-index: 100;

	@media (max-width: 990px) {
		padding: 16px 35px 16px 42px;
		font-size: 26px;
	}

	@media (max-width: 650px) {
		border-radius: 10px 10px 0 0;
		padding: 8px;
		line-height: 1;
		transform: rotate(270deg) translateY(90%);
      padding-bottom: 50px;
	}
  &:hover{
    background-color: #DC61BD;
    color: white;
  }
}

.home>.col>.frame-default {
	margin: 0 auto !important;
	padding-top: 40px !important;
	padding-bottom: 60px !important;
}

#content.home {
	padding-top: 0;

	#socialbar {
		display: none;
	}

	&>.col {
		padding-bottom: 0;
	}
}

/**/
.home .news-list-container .news-list-item {background-color: rgba(0, 104, 180, 0.2);}
.news-list-container {
	.news-list-item {
			

		.news-list-text {
			display: flex;
			flex-direction: column;

			.news-list-date {
				font-size: 16px;
				font-family: 'PT Sans';
				font-weight: 400;
				line-height: 1.2;
				color: #000;
			}

			h3 {
				font-size: 24px;
				font-family: 'PT Sans';
				font-weight: 600;
				line-height: 35px;
				color: #000;
			}

			.subheader {
				p {
					font-size: 18px;
					font-family: 'PT Sans';
					font-weight: 600;
					line-height: 32px;
					color: #000;
				}
			}

			.bodytext {
				font-size: 20px;
				font-family: 'PT Sans';
				font-weight: 400;
				line-height: 30px;
				color: #000;
			}

			.news-list-morelink {
				margin-top: auto;

				a {
					font-size: 21px;
					font-family: 'PT Sans';
					font-weight: 600;
					line-height: 35px;
					color: rgba(0, 0, 0, 0.45);					
				}
			}
		}

		.news-list-image {
			a {
				height: 290px;
				width: 175px;
				display: inline-block;

				img {
					object-fit: cover;
					object-position: center;
					width: 100%;
					height: 100%;
				}
			}
		}
	}

	@media (max-width:990px) {
		overflow: hidden;
	}
}

/**/
#content>.col>.frame>.text-frame>p:has(>:is(.btn-arrow-left, .link-button-primary, .link-button, .link-button-secondary)) {
	display: flex;
	justify-content: center;

	>a {
		margin: 0;
		margin-bottom: 100px;
		margin-top: -60px;
	}

	@media (max-width:990px) {
		margin: 0 !important;
		padding: 0 !important;

		>a {
			margin-bottom: 0;
		}
	}
}
/*Page 'Beratung-Begegnung'*/
#wrapper:has(#page-beratung-begegnung) {
		div:has(>#page-beratung-begegnung) {
			margin: 0 !important;
			padding-left: 0;
		}

		.cols-2-inner:has(#page-beratung-begegnung) {
			margin-bottom: 0 !important;

			.frame-type-image {
				margin-bottom: 0 !important;
			}

			&>.cols-50-inner-right {
				margin-left: 0;
			}
		}

		hr.ce-div {
			border-width: 3px;
			border-color: #2B68B4;
			margin-top: 60px;
			margin-bottom: 60px;
		}
	

	@media (max-width:990px) {
		.full-2 {
			margin-top: 0 !important;
		}
	}
}

.divider {
	width: 100%;
	height: 3px;
	background-color: #2B68B4;
	margin-bottom: 100px;
  
  &.no-line{
    background-color: transparent;
  }
  &.top-bottom{
    margin-top: 100px;
  }
  @media only screen and (max-width: 1024px){
    	margin-bottom: 30px;
    
    	 &.top-bottom{
    		margin-top: 30px;
  		}
  }
}
/**/
div:has(>.downloads-3-columns-wrapper){
  &+div{
    padding-top: 64px;
    
    p{
      margin-bottom: 16px;
    }
  }
}

/* Colored backgrounds for the "Grid: Background" grid element */
.home > .col > .frame-background {
	padding-top:80px !important;
	padding-bottom:80px !important;
	margin-bottom:0 !important;
}
.col-1 > .col > .frame-background {
	padding-top:80px;
	padding-bottom:80px;
	margin-bottom:0 !important;
}

.frame-background h2 {
	margin-top: 0;
	margin-bottom: 10px;
	font-family: "Calibri", Arial, sans-serif;
	font-size: clamp(36px, 2.6vw, 50px);
	font-weight: 600;
	line-height: clamp(40px, 2.86vw, 55px);
}

/* Remove the page spacing when a full-width element closes the page. */
#content.col-1:has(> .col > .frame-background:last-child) {
	padding-bottom: 0;
}

/* Separate the closing full-width element from the preceding content. */
.col-1 > .col > .frame-background:last-child {
	margin-top: 100px;
}

@media only screen and (max-width: 990px) {
	.col-1 > .col > .frame-background:last-child {
		margin-top: 60px;
	}
}

.frame-background.bg_blue::before {
	background-color: #0068B4;
}

.frame-background.bg_pink::before {
	background-color: #A61280;
}

.frame-background:is(.bg_blue, .bg_pink),
.frame-background:is(.bg_blue, .bg_pink) :is(
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	p,
	span,
	li,
	a,
	strong,
	em,
	blockquote,
	figcaption,
	dt,
	dd
) {
	color: #fff;
}

/* Detail page: main content, server-side submenu and full-width footer section */
#content.detail-page {
	padding-top: 50px;
	padding-bottom: 0;
}

#content.detail-page > #specialbar {
	margin-bottom: 60px;
}

/* Keep nested two-column grids flush with the detail-page content. */
#content.detail-page .cols-2-inner.section-inner {
	box-sizing: border-box;
	padding: 35px 0;
}

.detail-page__inner,
.detail-page__bottom-inner {
	width: 100%;
	max-width: 1340px;
	margin: 0 auto;
	padding-right: 30px;
	padding-left: 30px;
}

.detail-page__columns {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
}

.detail-page__main {
	width: 75%;
	padding-right: 5%;
	min-width: 0;
}

.detail-page__aside {
	width: 25%;
	min-width: 0;
}

#content.detail-page .detail-page__main > .frame,
#content.detail-page .detail-page__main > .section-inner,
#content.detail-page .detail-page__bottom-inner > .frame,
#content.detail-page .detail-page__bottom-inner > .section-inner {
	width: 100%;
	max-width: none;
	margin-right: 0;
	margin-left: 0;
	padding-right: 0;
	padding-left: 0;
}

.detail-submenu {
	padding-top: 80px;
}

.detail-submenu__title,
.detail-submenu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.detail-submenu__title {
	margin-bottom: 18px;
}

.detail-submenu__title,
.detail-submenu__item {
	display: flex;
	align-items: flex-start;
}

.detail-submenu__title::before,
.detail-submenu__item::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 17px;
	margin-right: 8px;
	margin-top: 7px;
	background: url(/fileadmin/1_Medien_Diakonie/bilder/Icons/pfeil_rechts.svg) center / contain no-repeat;
}

.detail-submenu__title a,
.detail-submenu__item > a {
	font-family: "Calibri", Arial, sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	color: #0068B4;
}

.detail-submenu__item {
	margin-bottom: 18px;
}

.detail-submenu__item.is-active > a,
.detail-submenu__item > a[aria-current="page"] {
	color: #A61280;
	text-decoration: underline;
}

.detail-page__bottom {
	margin-top: 100px;
}

.detail-page__bottom-inner > .frame-background {
	margin-bottom: 0 !important;
	padding-top: 80px;
	padding-bottom: 80px;
}

@media (max-width:990px) {
	#content.detail-page {
		padding-top: 32px;
	}

	#content.detail-page .cols-2-inner.section-inner {
		padding-top: 25px;
		padding-bottom: 25px;
	}

	#content.detail-page > #specialbar {
		height: 0;
		margin-bottom: 0;
		padding: 0;
	}

	.detail-page__columns {
		flex-wrap: wrap;
	}

	.detail-page__aside {
		order: -1;
		width: 100%;
		margin-bottom: 42px;
	}

	.detail-page__main {
		width: 100%;
		padding-right: 0;
	}

	.detail-submenu {
		padding-top: 0;
	}

	.detail-page__bottom {
		margin-top: 64px;
	}

	.detail-page__bottom-inner > .frame-background {
		padding-top: 60px;
		padding-bottom: 60px;
	}
}

@media (max-width:480px) {
	#content.detail-page {
		padding-top: 24px;
	}

	#content.detail-page .cols-2-inner.section-inner {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.detail-page__inner,
	.detail-page__bottom-inner {
		padding-right: 15px;
		padding-left: 15px;
	}

	.detail-submenu__title a,
	.detail-submenu__item > a {
		font-size: 21px;
		line-height: 28px;
	}

	.detail-page__bottom {
		margin-top: 48px;
	}
}
