/* Paragraphs */

.paragraphs .paragraph {
    padding: 110px 0;
    position: relative;
}


.paragraphs .paragraph.grey:before,
.paragraphs .paragraph.orange:before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 100%;
    background: var(--grau);
    z-index: -1;
}

.paragraphs .paragraph.orange:before {
    background-color: var(--gelb);
}

.paragraphs .paragraph.orange h2:after {
    background: white;
}

.paragraphs .paragraph.orange p.button a {
    background: white;
}

.paragraphs .paragraph.orange p.button a:hover {
    background: var(--blau);
}

.paragraphs .paragraph.paragraph--type--banner-volle-breite.grey:before {
    height: calc(100% + 50px);
}

.paragraph:after {
	content: "";
	position: absolute;
	top: -103px;
	left: calc(50% - 50vw);
	background: transparent;
	width: 100vw;
	height: calc(100% + 206px);
	z-index: -10;
}

.paragraph.background--grey:after {
	background: var(--grau);
}

.paragraph--type--infoblock {
    background: var(--gelb);
    padding: 50px 100px 25px 100px !important;
    border: 3px dashed black;
    width: calc(100% - 206px);
    font-size: 1.2em;
    margin: -50px auto 100px auto;
    position: relative;
}

.paragraph--type--infoblock.typ--ansprechpartner,
.paragraph--type--infoblock.typ--telefon,
.paragraph--type--infoblock.typ--link {
    padding-left: 200px !important;
    width: calc(100% - 306px);
}

.paragraph--type--infoblock.typ--ansprechpartner:before,
.paragraph--type--infoblock.typ--telefon:before,
.paragraph--type--infoblock.typ--link:before {
    content: "";
    position: absolute;
    left: 90px;
    top: 47px;
    width: 70px;
    height: 70px;
}

.paragraph--type--infoblock.typ--ansprechpartner:before {
    background: url('../images/icon-kontaktperson.svg') no-repeat top center;
    background-size: cover;
    top: 39px;
    width: 80px;
    height: 80px; 
}

.paragraph--type--infoblock.typ--telefon:before {
    background: url('../images/icon-telefon.svg') no-repeat top center;
    background-size: cover;
}

.paragraph--type--infoblock.typ--link:before {
    background: url('../images/icon-webseite.svg') no-repeat top center;
    background-size: cover;
    top: 41px;
}

.paragraph--type--infoblock .telefonnummer {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 800;
}

.paragraphs .paragraph ul li {
    margin: 0 0 15px 25px;
    width: calc(100% - 25px);
    position: relative;
}

.paragraphs .paragraph ul li:after {
    content: "";
    position: absolute;
    left: -25px;
    top: 4px;
    border: 3px solid var(--blau);
    width: 8px;
    height: 8px;
    border-radius: 50px;
}

.paragraph--type--flex-columns > div {
    display: flex;
    flex-direction: row;
}

.paragraph--type--flex-columns > div > div {
    flex: 1;
}

.paragraph--type--banner-volle-breite {
    padding: 0 !important;
    background: transparent;
    width: 100vw;
    position: relative;
    left: calc(50% - 50vw);
    padding: 200px 0 0 0 !important;
	margin: -50px 0 -50px 0;
}

.paragraph--type--banner-volle-breite .bannerimagewrap {
    width: 100%;
    position: absolute;
    top: 50px;
    left: 0;
    height: calc(100% - 100px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.paragraph--type--banner-volle-breite .bannerimagewrap img {
    position: absolute;
    top:0;
    left: 0;
    height: 100%;
    width: 100vw;
    object-fit: cover;
}

.paragraph--type--banner-volle-breite .bannericonwrap {
    width: 160px;
    /* left: 5vw; */
    left: 0;
    position: relative;
    margin: 0 0 50px 0;
	top: -230px;
}

.paragraph--type--banner-volle-breite .innerwidth {
    height: 100%;
}

.paragraph--type--banner-volle-breite .textbox {
    background: white;
    width: calc(50% - 200px);
    position: relative;
    padding: 50px 50px 25px 50px;
    box-shadow: 0 0 60px rgba(0,0,0,0.08);
    margin: 0 0 0 calc(50% + 100px);
}

.paragraph--type--bild-text {
	display: flex;
	flex-direction: row;
}

.paragraph--type--bild-text .column:nth-child(1) {
	width: 50%;
    position: relative;
}

.paragraph--type--bild-text .column:nth-child(2) {
	padding: 50px 100px;
	width: calc(50% - 200px);
}

.paragraph--type--bild-text .column:nth-child(2) > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.paragraph--type--bild-text .column:nth-child(1) .content-bild {
	width: 100%;
	height: 100%;
	position: relative;
}

.paragraph--type--bild-text .column:nth-child(1) .content-bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.paragraph--type--bild-text .column:nth-child(1) .content-icon {
	width: 160px;
	position: absolute;
	z-index: 2;
	top: -80px;
	left: 5vw;
}

.paragraph--type--text-bild {
	display: flex;
	flex-direction: row;
}

.paragraph--type--text-bild .column:nth-child(1) {
	padding: 50px 150px 50px 0px;
	width: calc(50% - 150px);
}

.paragraph--type--text-bild .column:nth-child(2) {
	width: 50%;
	position: relative;
}

.paragraph--type--text-bild .column:nth-child(1) > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.paragraph--type--text-bild .column:nth-child(2) .content-bild {
	width: 100%;
	height: 100%;
	position: relative;
}

.paragraph--type--text-bild .column:nth-child(2) .content-bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.paragraph--type--text-bild .column:nth-child(2) .content-icon {
	width: 160px;
	position: absolute;
	z-index: 2;
	top: -80px;
	right: 5vw;
}

.paragraph--type--bildergalerie .bildergalerie {
	display: flex;
}

.paragraph--type--bildergalerie .bildergalerie > div {
	flex: 1;
	padding: 20px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.paragraph--type--bildergalerie .bildergalerie img {
	margin: 0 auto;
}

.paragraph--type--kacheln {
    margin-bottom: 80px;
}

.paragraph--type--kacheln > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.paragraph--type--kacheln .field--name-field-kachel > .field__item {
    height: 100%;
}

.paragraph--type--kachel {
    padding: 0 !important;
}

.paragraph--type--kachel:after {
    display: none;
}

.paragraph--type--kachel .kachel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    padding: 32px;
    box-sizing: border-box;
    background: var(--grau);
    border: 2px solid #d9d9d9;
    outline: 2px solid transparent;
    outline-offset: 0;
    transition: border-color 0.2s ease, outline-color 0.2s ease, box-shadow 0.2s ease;
}

.paragraph--type--kachel:hover .kachel,
.paragraph--type--kachel:focus-within .kachel {
    border-color: var(--blau);
    outline-color: var(--blau);
    box-shadow: 0 0 0 4px rgba(0,67,136,0.18);
}

.paragraph--type--kachel .kachel__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.paragraph--type--kachel .kachel__bild,
.paragraph--type--kachel .kachel__inhalt {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.paragraph--type--kachel .kachel__inhalt {
    flex: 1;
}

.paragraph--type--kachel .kachel__bild img {
    width: 100%;
}

.paragraph--type--kachel .kachel__titel {
    margin-bottom: 0;
}

.paragraph--type--kachel:hover .kachel__titel {
    text-decoration: underline;
}

.paragraph--type--kachel .kachel__titel:after {
    display: none;
}

.paragraph--type--kachel .kachel__text > :last-child {
    margin-bottom: 0;
}

.paragraph--type--kachel a {
    border-bottom: 0;
}

.paragraph--type--kachel img {
    aspect-ratio: 1/1;
    object-fit: contain;
    object-position: center bottom
}

.spacing-negative {
	height: 0px;
	overflow: hidden;
	background: red;
	padding: 0 !important;
	margin: -100px;
}

.spacing-negative:after {
	display: none;
}

/* exceptions */

.paragraph#pg-58,
.paragraph#pg-8 {
    font-size: 1.2em;
    line-height: 1.5em;
}

.paragraph#pg-58 > div,
.paragraph#pg-8 > div {
	width: calc(100% + 220px);
	margin-left: -50px;
}

@media (max-width: 1300px) {
.paragraph#pg-58 > div,
.paragraph#pg-8 > div {
	width: 100%;
	margin-left: 0px;
}
}

.paragraph#pg-58 p,
.paragraph#pg-8 p{
    margin-bottom: 15px;
}

.paragraph#pg-58 p.telefon,
.paragraph#pg-8 p.telefon {
    font-size: 1.2em;
    line-height: 1.5em;
    padding-left: 53px;
}

.paragraph#pg-58 p.telefon:before,
.paragraph#pg-8 p.telefon:before {
    width: 40px;
    height: 40px;
}

.paragraph#pg-72 img {
	width: 75%;
	margin-left: 25%;
}

/* spendenbanner */
.paragraph#pg-87 > div {
	width: 60%;
	z-index: 2;
}

.paragraph#pg-87:after {
	content: "";
	position: absolute;
	top: -50px;
	right: calc(50% - 50vw);
	left: inherit;
	width: 45vw !important;
	height: calc(100% + 50px);
	background:  url('../images/kindergruppe.png') no-repeat right bottom;
    background-size: contain;
	z-index: 1;
}

@media (max-width: 1400px) {
    .paragraph#pg-87 > div {
        width: 50%;
    }
    
    .paragraph#pg-87:after {
        right: calc(50% - 55vw);
        width: 55vw !important;
    }
}

@media (max-width: 1024px) {
    .paragraphs .paragraph {
        flex-direction: column;
        padding: 80px 0;
    }

    .paragraph--type--infoblock.typ--ansprechpartner:before, .paragraph--type--infoblock.typ--telefon:before, .paragraph--type--infoblock.typ--link:before {
        display: none !important;
    }

    .paragraph--type--infoblock {
        padding: 5vw !important;
    }

    .paragraph--type--bild-text .column:nth-child(1),
    .paragraph--type--text-bild .column:nth-child(2) {
        width: 100%;
        order: 1;
    }

    .paragraph--type--bild-text .column:nth-child(2),
    .paragraph--type--text-bild .column:nth-child(1) {
        padding: 25px 0;
        width: 100%;
        order: 2;
    }

    .paragraph--type--banner-volle-breite .textbox {
        width: calc(100% - 360px);
        margin: 0 auto 40px auto;
        padding: 5vw;
    }

    .paragraph--type--bild-text .column:nth-child(1) .content-icon,
    .paragraph--type--text-bild .column:nth-child(2) .content-icon {
        width: 110px;
        top: -55px;
    }

    .paragraph--type--bildergalerie .bildergalerie {
        flex-wrap: wrap;
    }

    .paragraph--type--bildergalerie .bildergalerie > div {
        width: calc(50% - 40px);
        flex: auto;
    }

    .paragraph--type--kacheln .field--name-field-kachel {
        grid-template-columns: 1fr;
    }

    .paragraph--type--flex-columns > div {
        flex-direction: column;
    }

    .paragraph--type--infoblock.typ--ansprechpartner, .paragraph--type--infoblock.typ--telefon, .paragraph--type--infoblock.typ--link {
        padding: 5vw !important;
        width: calc(55vw - 8px);
    }
    
    .paragraph--type--infoblock.typ--link:before {
        left: 4vw;
        top: 4vw;
    } 

    .paragraph--type--infoblock,.paragraph--type--infoblock.typ--ansprechpartner, .paragraph--type--infoblock.typ--telefon, .paragraph--type--infoblock.typ--link {
        width: calc(90% - 10px);
        padding: 5vw 5vw calc(5vw - 50px) 5vw !important;
    }
    
    .paragraph--type--banner-volle-breite .textbox {
        width: calc(100% - 10vw);
    }

    .paragraph--type--flex-columns > div > div {
        margin-bottom: 25px;
    }

    .paragraph--type--banner-volle-breite {
        padding: 0 !important;
    }
    
    .paragraph--type--banner-volle-breite .bannerimagewrap {
        position: relative;
        top: 0;
        height: 100vw;
    }
    
    .paragraph--type--banner-volle-breite .bannerimagewrap img {
        position: relative;
    }
    
    .paragraph--type--banner-volle-breite .innerwidth {
        width: 100%;
    }

    #pg-58 {
        width: calc(100% - 60px);
        padding-left: 60px;
    }

    .spacing-negative {
        margin: -80px;
    }

    .paragraph#pg-72 img {
        width: 100%;
        margin-left: 0;
    }

    .paragraph#pg-87 {
        padding-bottom: 300px;
    }
    
    .paragraph#pg-87 > div {
        width: 100%;
    }
    
    .paragraph#pg-87:after {
        right: -5vw;
        height: 350px;
        width: calc(100% + 10vw) !important;
        top: inherit;
        bottom: 0;
    }
}

.paragraph--type--video {
    z-index: 1;
}

.paragraph--type--video + .paragraph--type--video {
    padding-bottom: 0;
}

.ksz-video {
    width: min(100%, 1111px);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.ksz-video__frame {
    background: #000;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.ksz-video__media {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

.ksz-video__media:focus-visible {
    outline: 4px solid var(--gelb);
    outline-offset: -4px;
}

.ksz-video__media::cue {
    color: #fff;
    background: rgba(0, 0, 0, 0.88);
    font-size: 1.2rem;
    line-height: 1.5;
    text-shadow: none;
}

.ksz-video__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ksz-video__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid #111;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ksz-video__button:hover {
    background: var(--gelb);
    border-color: var(--gelb);
    transform: translateY(-1px);
}

.ksz-video__button:focus-visible {
    outline: 4px solid var(--blau);
    outline-offset: 2px;
}

.ksz-video__button[disabled],
.ksz-video__button.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.ksz-video__icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.ksz-video__icon svg {
    width: 100%;
    height: 100%;
}

.ksz-video__icon--pause {
    display: none;
}

.ksz-video.is-playing .ksz-video__icon--play {
    display: none;
}

.ksz-video.is-playing .ksz-video__icon--pause {
    display: inline-flex;
}

.ksz-video.captions-active .js-video-captions {
    background: #111;
    border-color: #111;
    color: #fff;
}

.ksz-video__caption-note {
    margin: -4px 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.ksz-video__transcript {
    padding: 24px 28px;
    background: #f4f1e8;
    border-left: 6px solid var(--gelb);
}

.ksz-video__transcript h3 {
    margin-bottom: 12px;
}

.ksz-video__transcript p:last-child {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ksz-video__button {
        transition: none;
    }
}

@media (max-width: 767px) {
    .ksz-video__controls {
        gap: 10px;
    }

    .ksz-video__button {
        width: 52px;
        height: 52px;
    }

    .ksz-video__media::cue {
        font-size: 1rem;
    }

    .ksz-video__transcript {
        padding: 20px;
    }
}
