/*--------------------------------------------------------------
*
* 	GUTENBERG
*
--------------------------------------------------------------*/


/* LAYOUT AND ALIGNMENTS 
-------------------------------------------------- */

body .is-layout-flow > .alignleft {
	float: left;
	margin-inline-start: 0
	;margin-inline-end: 2em;
}
body .is-layout-flow > .alignright{
	float: right;
	margin-inline-start: 2em;
	margin-inline-end: 0;
}
body .is-layout-flow > .aligncenter{
	margin-left: auto !important;
	margin-right: auto !important;
}
body .is-layout-constrained > .alignleft{
	float: left;
	margin-inline-start: 0;
	margin-inline-end: 2em;
}
body .is-layout-constrained > .alignright{
	float: right;
	margin-inline-start: 2em;
	margin-inline-end: 0;
}
body .is-layout-constrained > .aligncenter{
	margin-left: auto !important;
	margin-right: auto !important;
}
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}
body .is-layout-constrained > .alignwide{
	max-width: var(--wp--style--global--wide-size);
}
body .is-layout-flex{
	display: flex;
}
body .is-layout-flex{
	flex-wrap: wrap;align-items: center;
}
body .is-layout-flex > *{
	margin: 0;
}:where(.wp-block-columns.is-layout-flex){
	gap: 2em;
}


/* ALIGNMENT
-------------------------------------------------- */

.wp-block-columns.alignfull {
    width: 100vw;
    position: relative;
    margin-left: -50vw;
    left: 50%;
    padding: 50px 0;
}
.wp-block-columns.alignfull .wp-block-heading {
    padding-bottom: 20px;
}
.wp-block-columns.alignfull .wp-block-column {
    margin: 0 auto;
    max-width: 1290px;
}



/* SPACES
-------------------------------------------------- */

h1 {
    padding-bottom: 10px;
}
.wp-block-heading + .wp-block-heading {
    padding-top: 0;
}
.wp-block-columns h2 {
    padding: 20px 0 10px 0;
}
.wp-block-columns h3 {
    padding: 20px 0 10px 0;
}
.wp-block-columns h4 {
    padding: 10px 0 0 0;
}
.wp-heading + .wp-gallery {
    padding-top: 0;
}
.wp-list {
    padding-bottom: 15px;
}
.wp-audio {
    padding: 25px 0;
}


/* GALLERY
-------------------------------------------------- */

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background: rgba(0,0,0,.5);
	padding: 10px;
}

.has-lightbox a {
    cursor: zoom-in;
}

/* Nur Links innerhalb einer WordPress Galerie ansprechen */
.has-lightbox a {
    position: relative;
    display: inline-block;
    line-height: 0; /* Verhindert kleine AbstÃĪnde unter dem Bild */
}

/* Das Icon-Element nur fÃžr Galerie-Bilder erstellen */
.has-lightbox a::after {
    content: "";
    pointer-events: none;
    /* Das originale WP-Lightbox SVG Icon */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12"><path fill="white" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    background-color: rgba(0, 0, 0, 0.45);
    
    /* Positionierung */
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    
    /* Animation & Sichtbarkeit */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-in-out, visibility 0.25s;
    z-index: 10;
}

/* Einblenden des Icons bei Hover Ãžber das Galerie-Bild */
.has-lightbox a:hover::after{
    opacity: 1;
    visibility: visible;
}

/* Optional: Das Bild in der Galerie bei Hover leicht abdunkeln */
.has-lightbox a:hover img {
    filter: brightness(0.9);
    transition: filter 0.25s ease;
}


/* TABLE
-------------------------------------------------- */

.wp-block-table td, .wp-block-table th {
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid var(--grey);
}

/* LIST
-------------------------------------------------- */

.wp-block-list li {
    padding-bottom: 10px;
}



/* ZITAT
-------------------------------------------------- */

.wp-block-quote {
    padding-left: 25px;
    border-left: 1px solid var(--grey);
}


/* FILE
-------------------------------------------------- */

.wp-block-file {
    padding: 25px 0;
}
.wp-block-file a {
    text-decoration: none !important;
    font-size: 16px;
}
.wp-block-file > a:first-of-type {
    border-bottom: 1px solid #cdcdcd;
    min-width: 100%;
    padding-bottom: 8px;
    margin-bottom: 6px;
    display: inline-block;
}
.wp-block-file .wp-block-file__button {
    background: var(--grey);
    color: #ffffff;
    border-radius: 0;
}
.wp-block-file *+.wp-block-file__button {
    margin-left: 0;
}


/* VIDEO
-------------------------------------------------- */

figure.wp-block-embed.is-type-video, .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    margin: 50px 0;
}
figure.wp-block-embed.is-type-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.wp-block-image.is-style-rounded img {
    border-radius: 15px;
}


/* MEDIA-TEXT
-------------------------------------------------- */

.wp-media-text + .wp-media-text {
    padding-top: 75px;
}


/* BUTTONS
-------------------------------------------------- */

.wp-block-button {
    background: var(--green);
    border-radius: 10px;
    transition: 0.3s;
}
.wp-block-button + .wp-block-button{
    margin-left: 10px;
}
.wp-block-button a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 30px;
    font-size: 18px;
}
.wp-block-button:hover {
    background: var(--darkergreen);
}

.wp-block-button.is-style-outline {
    background: none;
    
}
.wp-block-button.is-style-outline a {   
    color: var(--green);
    border-radius: 10px !important;
}
.wp-block-button.is-style-outline:hover {
    background: var(--lightgreen);
}

.has-background .wp-block-button.is-style-outline a {   
    color: var(--green);
    border: none;
    background: #ffffff;
    border-radius: 10px !important;
    transition: 0.3s;
}
.has-background .wp-block-button.is-style-outline a:hover {   
    color: #ffffff;
    background: var(--green);
}

/* ACCORDION
-------------------------------------------------- */

.wp-block-accordion {
    margin-bottom: 1.5em;
}

h3.wp-block-accordion-heading {
    font-size: 22px;
}
.wp-block-accordion-heading button {
    background: #efefef;
    padding: 12px;
}

/* IMAGE
-------------------------------------------------- */

.wp-block-image.is-style-rounded img {
    border-radius: 50%;
}

/*--------------------------------------------------------------
*
* 	CONTACTFORM 7 
*
--------------------------------------------------------------*/

.wpcf7-form label {
    font-size: 16px;
    text-transform: uppercase;
}

.wpcf7-select {
    padding: 8px !important;
    border-radius: 5px;
    min-width: 500px;
    box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.1); 
    background: #fff;
}

.wpcf7 input {
    border-radius: 0;
}

.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-quiz,
.wpcf7 .wpcf7dtx-dynamictext,
.wpcf7 .wpcf7-textarea {
    padding: 8px !important;
    border-radius: 5px;
    min-width: 500px;
    box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.1);   
}

.wpcf7 input[type="submit"] {
    min-width: 300px !important;
    background: var(--green) !important;
    border: 1px solid var(--green) !important;
    border-radius: 5px !important;
    color: #ffffff;
    padding: 15px 24px !important;
    font-size: 18px !important;
    transition: 0.3s;
}
.wpcf7 input[type="submit"]:hover {
    background: var(--darkergreen) !important;
    border: 1px solid var(--darkergreen) !important;
}

.wpcf7antispam {
    display: flex;
    flex-wrap: wrap;
}
.wpcf7antispam span {
    flex-basis: 100%;
}
.wpcf7antispam span strong {
    text-transform: none !important
}
.wpcf7antispam input {
    min-width: 300px !important;
    border: 1px solid #ccc !important; 
}