/*--------------------------------------------------------------
*
* 	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;
}


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

h1 {
    margin-bottom: 10px;
}
.wp-space + .wp-heading h2{
    margin: 30px 0 5px 0;
}
.wp-space + .wp-heading h3,
.wp-block-columns h3 {
    margin: 20px 0 5px 0;
}
.wp-space + .wp-heading h4,
.wp-block-columns h4 {
    margin: 10px 0 0 0;
}
.wp-heading + .wp-gallery {
    margin-top: 0;
}
.wp-list {
    margin-bottom: 15px;
}
.wp-audio {
    margin: 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
-------------------------------------------------- */

.table {
    color: currentColor;
}
.wp-block-table thead {
    border-bottom: 3px solid var(--clr-tableBorder);
}
.wp-block-table td, .wp-block-table th {
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid var(--clr-tableBorder);
}

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

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


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

.wp-block-file {    
    padding-bottom: 25px;
}
.wp-block-file a {
    display: flex;
    text-decoration: underline !important;
    font-size: var(--fs-p);
    font-weight: normal;
}
.wp-block-file a:hover {
    color: var(--clr-blue);
}
.wp-block-file a:before {
    content: '';
    display: inline-block;
    position: relative;
    width: 22px;
    height: 26px;
    background-image: url(/wp-content/themes/wptheme/assets/img/download_icon.svg);
    margin-right: 12px;
    top: -3px;
}
.wp-block-file__button{
    display: none !important;
}


/* 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;
}


.wp-container-3.wp-container-3,
.wp-container-6.wp-container-6,
.wp-container-13.wp-container-13 {
	flex-wrap:nowrap;
}
.wp-block-gallery.wp-block-gallery-7,
.wp-block-gallery.wp-block-gallery-9{
	--wp--style--unstable-gallery-gap:var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) );
	gap:var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) );
}



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

.sendbutton {
    background: none !important;
    border: 1px solid var(--orange) !important;
    border-radius: 0 !important;
    color: var(--orange) !important;
    padding: 10px 35px 10px 35px !important;
    font-size: 18px;
    transition: 0.3s;
}
.sendbutton:hover {
    background: var(--orange) !important;
    border: 1px solid var(--orange) !important;
    color: #fff !important;
    transition: 0.3s;
}

.wpcf7 input {
    border-radius: 0;
}

.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-quiz,
.wpcf7 .wpcf7dtx-dynamictext,
.wpcf7 .wpcf7-textarea {
    background: #F9F4ED;
    border: none;
    border-bottom: 2px solid var(--orange);
}
.article .wpcf7 .wpcf7-text,
.article  .wpcf7 .wpcf7-quiz,
.article  .wpcf7 .wpcf7dtx-dynamictext,
.article  .wpcf7 .wpcf7-textarea {
    background: #ffffff;
}
