/*
Theme Name: Mein Theme
Author: Ich
Version: 1.0
*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

main {
    margin: 0 auto;
    padding: 24px;
}

.site-header,
.site-footer, header {
    background: #ad0000;
    color: #fff;
    padding: 20px 24px;
	z-index: 100;
}

header{
	color: white;
	background:  #ad0000;
}

.site-header a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}


/* header bild */
.header-bild {
    background-image: url('/wp-content/uploads/2026/03/logo.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    height: 300px;
    width: 100%;
}

.header-bild-sakramente{
	background-image: url('https://www.erzbistum-paderborn.de/wp-content/uploads/sites/6/2024/03/weboptimiert-Hostie-uber-Kelch-scaled.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    height: 300px;
    width: 100%;
}


.header-bild-kirchen{
	background-image: url('https://www.bad-griesbach.de/fileadmin/_processed_/0/6/csm_Kronbergkirche_slider_fe44d72da9.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    height: 300px;
    width: 100%;
}


.header-bild-gruppen{
	background-image: url('https://static.spektrum.de/fm/912/f2000x857/iStock-1146472948_quer.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    height: 300px;
    width: 100%;
}

.header-bild-dynamisch{
	background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    height: 300px;
    width: 100%;
}

/* header bild */





/* homepage */
.nebeneinander {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.rechts img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 8px;
}

.rechts{
	background-color: #ad0000;
	color: #ffffff;
	padding: 20px;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.overlay.aktiv {
    display: block;
}

.overlay-hintergrund {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.overlay-inhalt {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.overlay-pdf iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.overlay-schliessen {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-size: 28px;
    background: #fff;
    border: none;
    cursor: pointer;
}
/* overlay */


/* navigation usw */
.site-header {
	background: #ad0000;
    border-bottom: 1px solid #ddd;
    padding: 20px 30px;
	color: #ffffff !important;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 20px;
}

.site-branding a {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.site-navigation nav {
    display: flex;
    justify-content: flex-end;
}

.main-menu {
    display: flex;
    justify-content: flex-end;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    margin: 0;
    padding: 0;
}

.main-menu a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.main-menu a:hover {
    text-decoration: underline;
}


.site-navigation ul,
.main-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation li {
    margin: 0;
    padding: 0;
}

.site-navigation a {
    display: block;
    text-decoration: none;
}







.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}





@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
	
	.menu-toggle {
    display: block;
    width: 28px;
    color: #fff;
    border-radius: 2px;
	font-size: 35px;
}

    .site-navigation {
        position: relative;
        display: flex;
        justify-content: flex-end;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        position: relative;
        z-index: 1101;
    }

    #main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: #ad0000;
        padding: 90px 24px 24px 24px;
        box-sizing: border-box;
        z-index: 1100;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    #main-navigation.aktiv {
        transform: translateX(0);
		/* here1 */
		margin-top: 40px;
    }

    #main-navigation .main-menu,
    #main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 18px;
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
    }

    #main-navigation .main-menu li,
    #main-navigation ul li {
        width: 100%;
    }

    #main-navigation .main-menu a,
    #main-navigation ul li a {
        display: block;
        width: 100%;
        color: #fff;
        text-decoration: none;
        font-size: 20px;
        padding: 8px 0;
    }
}

/* navigation usw */



/* nav scroll */
/*
.site-header {
    width: 100%;
    background: white;
    z-index: 1000;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
*/

/*
.site-header {
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
*/
.site-header {
    transition: none;
}

.site-header.animierbar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*
.site-header.versteckt {
    transform: translateY(-100%);
}*/

.site-header.ist-fixiert {
    position: fixed;
	top: -100px;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	transform: translateY(100px);
}

/*body.header-fixiert main, */body.header-fixiert.header-bild {
    
}

/* nav scroll */




/* wrapper */
.wrapper-pages{
	  max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.wrapper {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* wrapper */

@media (max-width: 768px) {
    .nebeneinander {
        grid-template-columns: 1fr;
    }
}


/* homepage */




/* sakramente */
.drei-boxen {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.box {
      background: #ffffff;
    color: #333;
    min-height: 250px;
    padding: 24px;
    border-radius: 18px;
    border-top: 6px solid #ad0000;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}


@media (max-width: 1000px) {
    .drei-boxen {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .drei-boxen {
        grid-template-columns: 1fr;
    }
}



/* sakramente */



/* kirchen */
.drei-boxen-kirchen {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
        "gross klein1"
        "gross klein2"
        "gross klein3";

    align-items: stretch;
}

.drei-boxen-kirchen .box-kirchen:nth-child(1) {
    grid-area: gross;
    min-height: 820px;
}

.drei-boxen-kirchen .box-kirchen:nth-child(2) {
    grid-area: klein1;
    min-height: 250px;
}

.drei-boxen-kirchen .box-kirchen:nth-child(3) {
    grid-area: klein2;
    min-height: 250px;
}

.drei-boxen-kirchen .box-kirchen:nth-child(4) {
    grid-area: klein3;
    min-height: 250px;
}

.box-kirchen {
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.box-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.box-bild::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.18) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.box-titel {
    bottom: 20px;
    z-index: 2;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.box-kirchen button {
    left: 24px;
    bottom: 20px;
    z-index: 2;
    background: #ad0000;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .drei-boxen-kirchen {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gross"
            "klein1"
            "klein2"
            "klein3";
    }

    .drei-boxen-kirchen .box-kirchen:nth-child(1),
    .drei-boxen-kirchen .box-kirchen:nth-child(2),
    .drei-boxen-kirchen .box-kirchen:nth-child(3),
    .drei-boxen-kirchen .box-kirchen:nth-child(4) {
        min-height: 280px;
    }
}


.box-kirchen {
    position: relative;
    overflow: hidden;
}

.box-inhalt {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
}

.box-titel {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.toggle-text {
    background: #ad0000;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.box-text {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    line-height: 1.5;
    max-width: 500px;
}

.box-text.aktiv {
    display: block;
}


/* kirchen */


/* gruppen */
.gruppen-liste {
    max-width: 1300px;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 32px;
}

.gruppe-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto auto;
    gap: 0 28px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.gruppe-bild {
    grid-column: 1;
    grid-row: 1;
	min-height: 300px;
    max-height: 300px;
}

.gruppe-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gruppe-inhalt {
    grid-column: 2;
    grid-row: 1;
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gruppe-inhalt h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    line-height: 1.2;
    color: #222;
}

.gruppe-kurz {
    margin: 0 0 16px 0;
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    font-weight: 600;
}

.gruppe-inhalt p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: #333;
}

.gruppe-toggle {
    align-self: flex-start;
    margin-top: 8px;
    background: #ad0000;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

.gruppe-mehr {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0 32px;
}

.gruppe-mehr.aktiv {
    opacity: 1;
    padding: 0 32px 32px 32px;
}

.gruppe-mehr-inhalt {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 12px;
    border-left: 4px solid #ad0000;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .gruppe-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .gruppe-bild {
        grid-column: 1;
        grid-row: 1;
        max-height: 220px;
    }

    .gruppe-inhalt {
        grid-column: 1;
        grid-row: 2;
        padding: 24px;
    }

    .gruppe-mehr {
        grid-column: 1;
        padding: 0 24px;
    }

    .gruppe-mehr.aktiv {
        padding: 0 24px 24px 24px;
    }
}

/*
@media (max-width: 900px) {
    .gruppe-card {
        grid-template-columns: 1fr;
    }

    .gruppe-inhalt {
        padding: 24px;
    }

    .gruppe-bild img {
        min-height: 220px;
    }
}
*/


/* gruppen */





/* blog-übersicht */
.blog-uebersicht {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.blog-card {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    background: #fff;
}

.blog-card-link {
    display: block;
    text-decoration: none;
}

.blog-card-bild {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.blog-card-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card-link:hover .blog-card-bild img {
    transform: scale(1.04);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.2) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

h3{
	font-size: 18px;
}

@media (max-width: 1200px) {
    .blog-uebersicht {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-uebersicht {
        grid-template-columns: 1fr;
    }

    .blog-card-bild {
        height: 280px;
    }

    .blog-card-titel {
        font-size: 24px;
    }
}



html {
    scroll-behavior: smooth;
}

.blog-jahre-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 32px 0 48px 0;
}

.blog-jahr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    background: #fff;
    border-radius: 18px;
    text-decoration: none;
    color: #222;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-jahr-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.blog-jahr-gruppe {
    margin-top: 48px;
}

.blog-jahr {
    margin: 0 0 20px 0;
    font-size: 36px;
    line-height: 1.2;
}

.blog-uebersicht {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.blog-card {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    background: #fff;
}

.blog-card-link {
    display: block;
    text-decoration: none;
}

.blog-card-bild {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.blog-card-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card-link:hover .blog-card-bild img {
    transform: scale(1.04);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.2) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.blog-card-titel {
	width: 100%;
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

@media (max-width: 1200px) {
	.blog-jahre-nav{
		grid-template-columns: repeat(5, 1fr);
	}
    
    .blog-uebersicht {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
	.blog-jahre-nav{
		grid-template-columns: repeat(3, 1fr);
	}
	
    .blog-uebersicht {
        grid-template-columns: 1fr;
    }

    .blog-card-bild {
        height: 280px;
    }

    .blog-card-titel {
        font-size: 24px;
    }

    .blog-jahr {
        font-size: 30px;
    }

    .blog-jahr-box {
        font-size: 26px;
        min-height: 90px;
    }
}


.blog-jahre-nav a{
	color: #ffffff;
	background: #ad0000;
}

/* blog-übersicht */




/* blog-einzeln */

main {
    padding: 0;
}

.single-bericht {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0px 0px;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr) 260px;
    gap: 48px;
    align-items: start;
    box-sizing: border-box;
	border-top: 6px solid #ad0000;
}

.single-bericht {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
	margin: 50px 0;
}

.single-bericht-bild {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ececec;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.single-bericht-bild img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.single-bericht-main {
    min-width: 0;
}

.single-bericht-main h1 {
    margin: 0 0 24px 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.1;
    color: #111;
}

.single-text {
    font-size: 18px;
    line-height: 1.8;
    color: #222;
}

.single-text p {
    margin: 0 0 18px 0;
}

.single-text img {
    max-width: 100%;
    height: auto;
}

.single-bericht-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.single-meta-box {
    background: #fff;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.single-meta-box span {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

.single-meta-box strong {
    display: block;
    font-size: 18px;
    line-height: 1.4;
    color: #111;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .single-bericht {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .single-bericht-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .single-meta-box {
        flex: 1 1 220px;
    }
}

@media (max-width: 768px) {
    .single-bericht {
        grid-template-columns: 1fr !important;

    }
	
	.single-bericht-inner{
		padding-top: 0px;
		padding-bottom: 28px;
		padding-right: 28px;
		padding-left: 28px;
	}

    .single-bericht-bild {
        aspect-ratio: 16 / 10;
        border-radius: 18px;
    }

    .single-bericht-main h1 {
        font-size: 34px;
    }

    .single-text {
        font-size: 17px;
    }

    .single-bericht-meta {
        flex-direction: column;
    }
}









.single-bericht-bild img {
    cursor: pointer;
}

.bild-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.bild-overlay.aktiv {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bild-overlay-hintergrund {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.bild-overlay-inhalt {
    position: relative;
    z-index: 2;
    width: min(92vw, 1400px);
    height: min(90vh, 900px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.bild-overlay-inhalt img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.bild-overlay-schliessen {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-10px);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

/* blog-einzeln */



/* gallery */
.single-bericht {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    align-items: start;
}

.single-bericht-bild {
    width: 100%;
	/*
	height: 100%;
	overflow: hidden;
	*/
}

.single-bericht-inhalt {
    width: auto !important;
    min-width: 0 !important;
	padding-right: 32px;
}

.single-bericht-inner {
    width: 100%;
    max-width: none;
}

.single-text {
    width: 100%;
}

.single-text .wp-block-gallery,
.single-text .wp-block-gallery.has-nested-images {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}



.single-text .wp-block-image.wp-image-80 {
    width: calc((100% - 32px) / 3);
    max-width: 100%;
    margin: 0;
}

.single-text .wp-block-image.wp-image-80 img {
    width: 100%;
    height: auto;
    display: block;
}


.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image){
	width: 100%
}


.single-text .wp-block-gallery, .single-text .wp-block-gallery.has-nested-images{
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1000px) {
    .single-text .wp-block-gallery, .single-text .wp-block-gallery.has-nested-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .single-text .wp-block-gallery, .single-text .wp-block-gallery.has-nested-images {
        grid-template-columns: repeat(2, 1fr);
    }
	
	/* fix hier notwendig */
	.single-bericht-inner{
	padding-left: 16px;
	padding-right: 16px;}
}



/* gallery */



/* footer */
footer{
	margin-top: 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.footer-inner > div:last-child {
    justify-self: end;
}

.footer-inner a {
    color: white;
}
/* footer */



/* general settings */
h1 {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
    padding-bottom: 10px;
}

h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 4px;
    background: #ad0000;
    border-radius: 2px;
}
/* general settings */




/* pdf mobile workaround */
.pdf-mobile {
  display: none;
}

@media (max-width: 768px) {
  .pdf-desktop {
    display: none;
  }

  .pdf-mobile {
    display: block;
  }
}
/* pdf mobile workaround */