/*
Theme Name:  Nectarblocks Child Theme
Version:     1.0.0
Template:    nectar-blocks-theme
Description: Child theme for Nectarblocks.
Theme URI:   https://nectarblocks.com
Author:      NectarBlocks
Author URI:  https://nectarblocks.com
License:     Custom license
License URI: https://nectarblocks.com/license
Text Domain: nectar-blocks-theme
*/

/*-------------------------------------------------------------------------*/
/* Note: The theme CSS files are loaded through the /css/ folder. 
/*-------------------------------------------------------------------------*/


.dna_tag {
    width: fit-content;
}


/* Standard (Desktop): mobile Version ausblenden */
.ac-mobile {
  display: none !important;
}

/* Ab 1024px abwärts: Desktop aus, Mobile ein */
@media (max-width: 1024px) {
  .ac-desktop {
    display: none !important;
  }
  .ac-mobile {
    display: block !important;
  }
}

/*dna news*/

.dna_news article.nectar-blocks-post-grid__item {
    border-radius: 1rem;
    overflow: auto;
}




/*Flyout - Agenturen*/
.flyout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9998;
}
.flyout-content .nectar-blocks-image, .flyout-body h4{
  margin-bottom: 1rem;
}


ul.flyout-tags {
    margin-bottom: 1.5rem;
}

.flyout-head {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.flyout-head p {
    margin-bottom: unset;
}

span.flyout-eyebrow {
    margin-bottom: .5rem;
}

a.flyout-cta {
    display: flex;
    padding: 1em 1.5em;
    background: var(--accentPrimary);
    color: var(--light);
    border-radius: 999px;
    font-weight: 500;
    width: fit-content;
    line-height: normal;
}

.flyout-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.flyout-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 25vw;
  max-width: 100%;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 9999;
  padding: 64px 40px 40px;
  overflow-y: auto;
}
.flyout-panel.is-open {
  transform: translateX(0);
}

.flyout-close {
  text-align: end;
  width: 100%;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
}
.flyout-close:hover { color: #000; }

body.flyout-locked { overflow: hidden; }

@media (max-width: 600px) {
  .flyout-panel { width: 100%; padding: 56px 24px 32px; }
}


/* cf7 form */

.wp-block-contact-form-7-contact-form-selector {
    width: 100%;
}

.cf7_dna-form {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.cf7_dna-wrap {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}
.cf7_dna-wrap.col-2 {
    flex-direction: row;
}

.wpcf7-spinner {
  position: absolute;
  z-index:-1;
}

/* Contact Form 7 – Antwortmeldung */
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 20px 16px 52px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  background: #f4f4f4;
  color: #333;
}
.wpcf7 form .wpcf7-response-output::before {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* Erfolgreich gesendet */
.wpcf7 form.sent .wpcf7-response-output {
  background: #e8f1fb;
  color: #104786;
}
.wpcf7 form.sent .wpcf7-response-output::before {
  content: "✓";
  background: #104786;
}

/* Pflichtfelder fehlen / ungültig */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background: #fdeaf3;
  color: #9e0054;
}
.wpcf7 form.invalid .wpcf7-response-output::before,
.wpcf7 form.unaccepted .wpcf7-response-output::before,
.wpcf7 form.payment-required .wpcf7-response-output::before {
  content: "!";
  background: #e5007a;
}

/* Senden fehlgeschlagen / Spam */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  background: #fff8cc;
  color: #5c4d00;
}
.wpcf7 form.failed .wpcf7-response-output::before,
.wpcf7 form.aborted .wpcf7-response-output::before,
.wpcf7 form.spam .wpcf7-response-output::before {
  content: "!";
  background: #333;
}

/* Fehlerhinweise unter den Feldern */
.wpcf7-not-valid-tip {
  font-size: 13px;
  color: #e5007a;
  margin-top: 6px;
}
.wpcf7 .wpcf7-not-valid {
  box-shadow: inset 0 0 0 2px #e5007a;
}


/* DNA: Logowall – harmonische Logo-Größen */
.nectar-blocks-scrolling-marquee .nectar-blocks-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  max-width: 180px;
}
.nectar-blocks-scrolling-marquee .nectar-blocks-image img,
.nectar-blocks-scrolling-marquee img {
  max-height: 48px !important;
  width: auto !important;
  max-width: 160px !important;
  height: auto !important;
  object-fit: contain;
}

/* DNA: Zeitstrahl – Einträge nicht abschneiden */
.dna_timeline {
  overflow: visible !important;
}
.dna_timeline .nectar-blocks-image img {
  max-height: 48px;
  width: auto !important;
  max-width: 200px;
  object-fit: contain;
}
.dna_timeline .nectar-blocks-flex-box {
  overflow: visible;
}
@media (max-width: 1280px) {
  div#formular.dna_formular {
    flex-direction: column!important;
  }
  .dna_formular #yellow_circle {
    --nb-authored-width: 40%;
  }
}

/* LEISTUNG & PARTNER */

.nectar__link.is-active {
  color: #e5007a !important;
  border-color: #e5007a !important;
}

.js-anchor-link.dna_mobile a {
    justify-content: left !important;
}

.dna_4er-partner {
  align-items: stretch !important;
}
.dna_4er-partner .dna_icon-box {
  height: auto !important;
  align-self: stretch;
}

/*WPML*/

@media (min-width: 1024px) {
.nectar_hook_global_section_footer .wpml-language-switcher-block ul.horizontal-list {
justify-content: flex-end!important;
}}

/* Sprachumschalter im Hauptmenü – Flagge verkleinern */
.wpml-ls-menu-item .wpml-ls-flag {
  width: 18px !important;
  height: 12px !important;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}

/* grauen Hintergrund-Kasten (Theme-Hover-Deko) entfernen */
.wpml-ls-menu-item .menu-title-text::before {
  display: none !important;
}

/* Flagge + Text sauber nebeneinander */
.wpml-ls-menu-item .menu-title-text {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.co img {
    width: 180px;
    margin-top: 1rem;
}

/***Footer****/

/* Footer-Textlinks: keine Unterstreichung, Magenta beim Hover */
#dna_footer .nectar-blocks-text a {
  text-decoration: none !important;
  transition: color .2s ease;
}
#dna_footer .nectar-blocks-text a:hover,
#dna_footer .nectar-blocks-text a:focus {
  color: #e5007a !important;
  text-decoration: none !important;
}
/* Hide WPML development-site footer banner until production site key is set at GoLive */
.otgs-development-site-front-end { display: none !important; }

/* Local Maven Pro (self-hosted variable font) */
@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./fonts/maven-pro-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./fonts/maven-pro-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./fonts/maven-pro-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
