/**
 * Theme Name: co-de Theme
 * Template:   twentytwentyfive
 * ...other header fields
 */

::-moz-selection { /* Code for Firefox */
  color: #000;
  background: #f4b200;
}

::selection {
  color: #000;
  background: #f4b200;
}

/* Kontaktformular */

 .wpcf7 .wpcf7-text,
 .wpcf7 .wpcf7-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--large);
    font-style: normal;
    font-weight: 300;
    letter-spacing: -0.1px;
    line-height: 1.5;
}

.wpcf7 .wpcf7-captchar {
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    font-family: var(--wp--preset--font-family--manrope);
    font-size: var(--wp--preset--font-size--large);
    font-style: normal;
    font-weight: 300;
    letter-spacing: -0.1px;
    line-height: 1.5;

}

.wpcf7 form .wpcf7-response-output {
    margin: 0;
}

.wpcf7 .wpcf7-list-item {
    margin: 0;
}

.wpcf7 .wpcf7-checkbox {
    width: 22px;
    height: 22px;

}

/* Softwarepartner Logos als Link display:block
 * --------------------------------------------------------------------*/

.softwarepartner .wp-block-image a {
	display: block;
}


/* Page Logo als svg height definieren */

.wp-block-site-logo img.custom-logo {
	height: 50px;
}

/* FadeIn Animation
 * 
 * -------------------------------------------------------------------- */

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

main .wp-block-heading, 
main p,  
main .wp-block-post-title,  
main span.wp-block-post-terms__separator,
main :not(figure, .wp-block-post-title) > a {
  opacity: 0; /* Setze die Ausgangstransparenz auf 0 */
}

/* Wenn das Element sichtbar wird, wende die Fade-In Animation an */
main .wp-block-heading.visible, 
main p.visible, 
main .wp-block-post-title.visible, 
main span.wp-block-post-terms__separator.visible,
main :not(figure, .wp-block-post-title) > a.visible {
  animation-name: fadein;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}


/* Underline Hover Animation für Links
 * -------------------------------------------------------------------- */

/* Text decoration entfernen, Position*/

:is(p,li,.wp-block-post-terms) > a:where(:not(.wp-element-button)){
	position: relative;
	text-decoration: none;
}

:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover) {
	text-decoration: none;
}

:root :where(.wp-block-post-title a:where(:not(.wp-element-button)):hover){
	text-decoration: none;
}

/* Border Bottom in Weiß*/

:is(p,li,.wp-block-post-terms):not(.anker) > a:where(:not(.wp-element-button)){
	background-image: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255)),
    linear-gradient(#f4b200, #f4b200);
	background-size: 100% 1px, 0 1px;
	background-position: 100% 100%, 0 100%;
	background-repeat: no-repeat;
	transition: background-size .6s linear;
}

/* Border Bottom in Schwarz*/


:is(.is-style-section-5--3, .is-style-section-5--4) :is(p,li):not(.anker) > a:where(:not(.wp-element-button)),
:is(.has-contrast-background-color) > a:where(:not(.wp-element-button)){
	background-image: linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0)),
    linear-gradient(#f4b200, #f4b200);
 	background-size: 100% 1px, 0 1px;
	background-position: 100% 100%, 0 100%;
	background-repeat: no-repeat;
	transition: background-size .6s linear;
}

/* Gelbe Linie beim Hovern*/

:is(p,li,.wp-block-post-terms):not(.anker) > a:where(:not(.wp-element-button, .ab-item)):is(:hover, :focus) {
	background-size: 0 1px, 100% 1px;
}



/* Navigation – Hover und Tastatur-Fokus identisch */
.wp-block-navigation a:where(:not(.wp-element-button)) {
    position: relative;
    text-decoration: none;
    outline: none;
    box-shadow: none;

    background-image: linear-gradient(#f4b200, #f4b200);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .6s linear;
}

.wp-block-navigation a:where(:not(.wp-element-button)):is(:hover, :focus-visible) {
    outline: none;
    box-shadow: none;
    background-size: 100% 1px;
}



/* Link Images Zoom Effekt
 * --------------------------------------------------
 *  */

body:not(.home) a > img.wp-post-image {
	transition: transform ease .8s;
	transform: scale(1.05);

}

body:not(.home) a:is(:hover, :focus) > img.wp-post-image {
	transform: scale(1);
}

body:not(.home) figure.wp-block-post-featured-image {
	overflow: hidden;	
	transition: transform ease .8s;
}

/* Arrows Links
 * -------------------------------------------------------------------- */

/* Post Title */

:is(.wp-block-post-title) > a::after {
	content: '\f178';
	font: var(--fa-font-solid);
	font-size: .9em;
	-webkit-font-smoothing: antialiased;
	padding-left: .5em;
}

/* Anker */

.anker {
	text-decoration: none;
}

:is(.anker) > a::after {
	content: '\f149';
	font: var(--fa-font-solid);
	font-size: .9em;
	-webkit-font-smoothing: antialiased;
	padding-left: .5em;
}


.wp-block-query.alignwide,
.wp-block-query.alignwide .wp-block-post-template {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wp-block-post-featured-image.alignwide {
  max-width: 1400px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wp-block-post-featured-image.alignwide img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}


/* Blog-/Projekt-Headerbild */
.wp-block-post-featured-image.alignfull {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
	margin-bottom: -7vh !important;
}

.wp-block-post-featured-image.alignfull img {
    width: 100% !important;
    height: auto !important;
    display: block;
}



.wpcf7-not-valid-tip {
    color: #f4b200 !important;
    font-size: 0.8em;
    font-weight: normal;
    display: block;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #ffb900;
background-color: #ffb900;
}

/* CF7 – aktives Eingabefeld hervorheben */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: 1px solid rgba(244, 178, 0, 0.5);
    outline-offset: 0;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border: none !important;
    background-color: rgba(244, 178, 0, 0.5) !important;
}

.wcc-switch input[type="checkbox"]:checked {
    background: #F4B200 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Fließtext: deutsche automatische Silbentrennung */
p, li {
  hyphens: auto !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Ausgewählte Texte niemals trennen */
.nicht-trennen,
.nicht-trennen * {
    -webkit-hyphens: none !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}