/* ---------------------------------------------------------------------
   1) Schrift: DIN 2014 Rounded Variable (Adobe Fonts, Achse wght 200–900)
   --------------------------------------------------------------------- */
:root {
  --edk-font: "din-2014-rounded-variable", "DIN Round", Arial, sans-serif;
}

/* Überschreibt auch die Modul-Einstellung "DIN 2014 Rounded VF" aus dem Import.
   Icons (ETmodules / Font Awesome) sind ausgenommen. */
body,
#page-container :is(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, em, b,
  blockquote, label, input, textarea, select, button,
  .et_pb_module_header, .et_pb_button, .et_pb_text_inner, .et_pb_menu__menu):not(.et-pb-icon):not([class*="et-icon"]):not([data-icon]) {
  font-family: var(--edk-font) !important;
}

/* Fett-Stufen der Variable Font */
strong, b { font-weight: 600; }   /* "Demi" */

/* Weiches Scrollen zu Ankern */
html { scroll-behavior: smooth; }
html.edk-js-scrolling { scroll-behavior: auto !important; }

/* Abstand für den Header, damit die Section nicht darunter verschwindet */
[id] { scroll-margin-top: 120px; }   /* = Header-Höhe + etwas Luft */

@media (max-width: 980px) { [id] { scroll-margin-top: 90px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------------
   2) Farb-Variablen als Fallback
   Divi gibt globale Farben als var(--gcid-…) aus. Falls der Import die
   globalen Farben nicht anlegt, greifen diese Werte.
   --------------------------------------------------------------------- */
:root {
  --gcid-edk-rot: #FB5058;
  --gcid-edk-schwarz: #000000;
  --gcid-edk-weiss: #FFFFFF;
  --gcid-edk-rose: #FBEDEC;
  --gcid-edk-blau: #CBE2F0;
  --gcid-edk-gruen: #CFDECB;
  --gcid-edk-lila: #E2DCEA;
  --gcid-edk-gelb: #F6FBC1;
}

/* ---------------------------------------------------------------------
   3) Absätze: Divi-Standardabstand am letzten Absatz entfernen
   --------------------------------------------------------------------- */
.edk-box p:last-child,
.edk-card p:last-child,
.edk-pill p,
.edk-step p,
.edk-contact-name p:last-child,
.edk-contact-data p { padding-bottom: 0; }
.edk-contact-name p:first-child { padding-bottom: 1.1em; }

.edk-hyphens { hyphens: auto; -webkit-hyphens: auto; }

/* ---------------------------------------------------------------------
   4) Listen mit "·" wie im Layout
   --------------------------------------------------------------------- */
.edk-list ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.4em 0 0 0 !important;
}
.edk-list ul li {
  position: relative;
  padding-left: 0.8em;
}
.edk-list ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   5) Pills / Labels
   --------------------------------------------------------------------- */
.edk-pill { line-height: 1.2; }

/* runde Pfeil-Icons (3 Energien, Arbeitsbereiche) */
.edk-arrow-icon { flex: 0 0 auto; line-height: 1; }

/* ---------------------------------------------------------------------
   6) Buttons mit Pfeil-Kreis links ("Werde Teil des edikoo Teams." usw.)
   --------------------------------------------------------------------- */
body #page-container .et_pb_section .edk-btn-arrow .et_pb_button,
body #page-container .et_pb_section .edk-btn-arrow.et_pb_button {
  position: relative;
  display: inline-block;
  background-color: var(--gcid-edk-rot);
  color: #fff !important;
  border: 0 !important;
  border-radius: 34px;
  padding-left: 60px !important;
  text-align: left;
  line-height: 1.2 !important;
  transition: background-color .2s ease;
}
.edk-btn-arrow .et_pb_button::after,
.edk-btn-arrow.et_pb_button::after { display: none !important; }   /* Divi-Standard-Icon aus */
.edk-btn-arrow .et_pb_button::before,
.edk-btn-arrow.et_pb_button::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 35px;
  width: 32px;
  height: 32px;
  /* margin-top: -16px; */
  border-radius: 50%;
  background: url("/wp-content/themes/Divi-child/assets/img/icon-arrow-right-negativ.svg") center / 30px no-repeat;
  opacity: 1 !important;
  color: transparent!important;
}
.edk-btn-arrow .et_pb_button:hover { background-color: #000 !important; }

@media (max-width: 767px) {
  body #page-container .et_pb_section .edk-btn-arrow .et_pb_button,
  body #page-container .et_pb_section .edk-btn-arrow.et_pb_button {padding-left: 60px !important;border-radius: 24px;}
  .edk-btn-arrow .et_pb_button::before,
.edk-btn-arrow.et_pb_button::before {left: 36px;width: 28px;height: 28px;margin-top: -10px;/* background-size: 17px; */}
}

/* ---------------------------------------------------------------------
   7) Deko-Wellen (SVG) – keine Klicks abfangen, auf dem Handy ausblenden
   --------------------------------------------------------------------- */
.edk-deco-waves { pointer-events: none; }
.edk-deco-waves svg { width: 100%; height: 100%; display: block; }
@media (max-width: 767px) {
  .edk-hide-phone { display: none !important; }
}

/* ---------------------------------------------------------------------
   8) Testimonial-Slider: runde rote Pfeile
   Selektoren ggf. an die Ausgabe Ihrer Divi-Version anpassen
   (Browser-Inspektor: Pfeil-Elemente im Group-Carousel).
   --------------------------------------------------------------------- */
.edk-slider .et-pb-arrow-prev,
.edk-slider .et-pb-arrow-next,
.edk-slider [class*="arrow-prev"],
.edk-slider [class*="arrow-next"] {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: var(--gcid-edk-rot) !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 34px !important;
  text-align: center;
  opacity: 1 !important;
}
.et_pb_group_carousel .et-pb-icon {
    background: url("/wp-content/themes/Divi-child/assets/img/icon-arrow-right.svg") center / 30px no-repeat;
    font-size: 0!important;
    width: 33px;
    height: 33px;
}
.et_pb_group_carousel .et_pb_group_carousel_arrow_prev .et-pb-icon {
    transform: rotate(180deg);
}
@media (max-width: 767px) {
  .et_pb_group_carousel_dots_disabled .et_pb_group_carousel_arrow, 
    .et_pb_group_carousel_dots_overlay .et_pb_group_carousel_arrow {
      top: calc(10% + 0px);
  }
    #karriere-mitarbeiter .et_pb_group_carousel_dots_disabled .et_pb_group_carousel_arrow, 
    #karriere-mitarbeiter .et_pb_group_carousel_dots_overlay .et_pb_group_carousel_arrow {
      top: calc(50% + 12.5px);
  }
    
}

/* ---------------------------------------------------------------------
   9) Header-Menü
   Menüpunkt "Kontakt": unter Design > Menüs bei diesem Punkt die
   CSS-Klasse  edk-menu-kontakt  eintragen (Ansicht-Optionen > CSS-Klassen).
   --------------------------------------------------------------------- */
header .mobile_nav .et_mobile_menu {
    width: max-content;
    left: unset;
    right: 0;
}
.edk-menu .et-menu > li > a,
.edk-menu .et_pb_menu__menu > nav > ul > li > a { letter-spacing: .02em; }
.edk-menu .current-menu-item > a,
.edk-menu .current_page_item > a { color: var(--gcid-edk-rot) !important; }
.edk-menu li.edk-menu-kontakt > a {
  background: #000;
  color: #fff !important;
  border-radius: 20px;
  padding: 4px 12px !important;
}
.et_pb_menu .et_pb_menu__menu>nav>ul>li {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

/* ---------------------------------------------------------------------
   10) Footer-Links
   --------------------------------------------------------------------- */
.edk-footer-links a { color: #fff !important; margin-left: 50px; text-decoration: none; }
.edk-footer-links a:first-child { margin-left: 0; }
@media (max-width: 767px) {
  .edk-footer-links { text-align: left !important; }
  .edk-footer-links a { display: block; margin: 0 0 8px 0; }
}


/* Kontaktdaten-Links */
.edk-contact-data a { color: inherit; text-decoration: none; }
.edk-contact-data a:hover { color: var(--gcid-edk-rot); }

/* Checkliste "Check it out." */
.edk-checklist li { margin-bottom: 14px; align-items: flex-start; }

/* Mitglieder-Buttons */
/* Toggle */
.edk-toggle .edk-toggle-btn { cursor: pointer; transition: transform .35s ease; }
.edk-toggle .edk-toggle-btn.active { transform: rotate(180deg); }
.edk-toggle .edk-toggle-btn:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.edk-toggle .edk-toggle-text { display: none; }
.edk-toggle .edk-toggle-text.active { display: block; animation: edkFadeIn .35s ease both; }
@keyframes edkFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Text-Buttons: keine Drehung, aktiv = fett */
.edk-toggle .edk-toggle-btn--text,
.edk-toggle .edk-toggle-btn--text.active { transform: none; }

.edk-toggle .edk-toggle-btn--text.active,
.edk-toggle .edk-toggle-btn--text.active * { font-weight: 700 !important; }

body.et-fb .edk-toggle .edk-toggle-text,
body.et-vb .edk-toggle .edk-toggle-text { display: block; }   /* im Builder sichtbar */

@media (prefers-reduced-motion: reduce) {
    .edk-toggle .edk-toggle-btn,
    .edk-toggle .edk-toggle-text.active { transition: none; animation: none; }
}

/* Venn-Kreise */
.edk-venn { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.edk-venn circle {
    fill: none;
    stroke: var(--gcid-edk-rot);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;   /* Linienstärke unabhängig von der SVG-Größe */
    transition: stroke-width .35s ease;
}
.edk-venn circle.active { stroke-width: 4; }

@media (prefers-reduced-motion: reduce) { .edk-venn circle { transition: none; } }

/* =====================================================================
   edikoodex
   ===================================================================== */

/* Linke Spalte: Intro und Buttons liegen übereinander (gleiche Fläche) */
.edk-codex .edk-codex-left {
    display: grid !important;
    align-items: center;
}
.edk-codex .edk-codex-left > * {
    grid-area: 1 / 1;
    margin: 0 !important;
}

/* Intro "der edikoodex" */
.edk-codex .edk-codex-intro {
    transition: opacity .6s ease, transform .6s ease;
}
.edk-codex.is-inview .edk-codex-intro {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

/* Buttons: erst unsichtbar, dann gestaffelt einblenden */
.edk-codex .edk-codex-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 70px;
}
.edk-codex .edk-codex-buttons .edk-toggle-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    max-width: 340px;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .5s ease, transform .5s ease;
}
.edk-codex.is-inview .edk-codex-buttons .edk-toggle-btn {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.edk-codex.is-inview .edk-codex-buttons .edk-toggle-btn:nth-child(1) { transition-delay: .25s; }
.edk-codex.is-inview .edk-codex-buttons .edk-toggle-btn:nth-child(2) { transition-delay: .40s; }
.edk-codex.is-inview .edk-codex-buttons .edk-toggle-btn:nth-child(3) { transition-delay: .55s; }

/* Hier dreht sich nur das Pfeil-Icon, nicht der ganze Button */
.edk-codex .edk-toggle-btn.active { transform: none; }
.edk-codex .edk-toggle-btn .edk-arrow-icon { transition: transform .35s ease; }
.edk-codex .edk-toggle-btn.active .edk-arrow-icon { transform: rotate(180deg); }

/* Ellipsen */
.edk-codex-svg {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    margin-left: auto;
    overflow: visible;
}
.edk-codex-svg ellipse {
    fill: none;
    stroke: var(--gcid-edk-rot);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
    transition: transform .9s cubic-bezier(.22,.61,.36,1), stroke-width .35s ease;
}
/* geschlossen: eng beieinander */
.edk-codex-svg .edk-codex-e1 { transform: translateY(-90px); }
.edk-codex-svg .edk-codex-e3 { transform: translateY(90px); }
/* geöffnet: auseinander */
.edk-codex.is-inview .edk-codex-svg .edk-codex-e1 { transform: translateY(-200px); }
.edk-codex.is-inview .edk-codex-svg .edk-codex-e3 { transform: translateY(200px); }
/* aktiv: dicker */
.edk-codex-svg ellipse.active { stroke-width: 4; }

/* Im Visual Builder alles sichtbar */
body.et-fb .edk-codex .edk-codex-buttons .edk-toggle-btn,
body.et-vb .edk-codex .edk-codex-buttons .edk-toggle-btn { opacity: 1; transform: none; pointer-events: auto; }

/* Handy: kleinere Abstände */
@media (max-width: 767px) {
    .edk-codex .edk-codex-buttons { gap: 32px; }
    .edk-codex-svg { margin: 32px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
    .edk-codex .edk-codex-intro,
    .edk-codex .edk-codex-buttons .edk-toggle-btn,
    .edk-codex .edk-arrow-icon,
    .edk-codex-svg ellipse { transition: none !important; }
}

/* Statement-Section: standardmäßig ausgeblendet */
.edk-statement { display: none; }

/* Im Visual Builder sichtbar lassen */
body.et-fb .edk-statement,
body.et-vb .edk-statement { display: block !important; }

/* Kurzvideos ohne Steuerelemente */
.edk-autoplay video { display: block; width: 100%; height: auto; pointer-events: none; }
.edk-autoplay .et_pb_video_overlay,
.edk-autoplay .et_pb_video_play { display: none !important; }
.edk-autoplay video::-webkit-media-controls { display: none !important; }

/* =====================================================================
   Leistungskacheln
   ===================================================================== */

/* Kacheln: keine Drehung, nur Hover/Aktiv-Zustand */
.edk-tiles .edk-toggle-btn--tile,
.edk-tiles .edk-toggle-btn--tile.active { transform: none; }
.edk-tiles .edk-toggle-btn--tile {
    cursor: pointer;
    transition: box-shadow .3s ease, filter .3s ease;
}
.edk-tiles .edk-toggle-btn--tile:hover { filter: brightness(.98); }
.edk-tiles .edk-toggle-btn--tile.active { box-shadow: inset 0 0 0 2px var(--gcid-edk-rot); }

/* Text-Blöcke: über die ganze Breite des Grids */
.edk-tiles .edk-tile-text { grid-column: 1 / -1; }

/* Pfeil in der Kachel dreht sich bei geöffnetem Text */
.edk-tiles .edk-tile-arrow {
    transition: transform .4s ease;
    transform-origin: center;
}
.edk-tiles .edk-toggle-btn--tile.active .edk-tile-arrow {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .edk-tiles .edk-tile-arrow { transition: none; }
}

/* =====================================================================
   Animierte SVGs
   ===================================================================== */
.edk-svg-anim { display: block; width: 100%; height: auto; }

/* =====================================================================
   Checkliste (fiktive Checkboxen)
   ===================================================================== */
.edk-checklist .et_pb_icon_list_item {
    cursor: pointer;
    user-select: none;
}

/* Divi-Icon wird zum Kreis (leer: schwarz) */
.edk-checklist .et-pb-icon {
    position: relative;
    display: inline-block;
    width: 1.5em !important;
    height: 1.5em;
    font-size: inherit !important;
    color: transparent !important;   /* Original-Glyph ausblenden */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='22' cy='26' r='19' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    flex-shrink: 0;
}

/* Angehakt: rosa Kreis mit rotem Haken, der oben rechts übersteht */
.edk-checklist .et-pb-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='22' cy='26' r='19' fill='%23FBEDEC' stroke='%23FB5058' stroke-width='2'/%3E%3Cpath d='M12 26l8 8L44 8' fill='none' stroke='%23FB5058' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s ease, transform .2s ease;
}
.edk-checklist .et_pb_icon_list_item.is-checked .et-pb-icon::after {
    opacity: 1;
    transform: scale(1);
}

/* Tastatur-Fokus dezent statt schwarzem Rahmen */
.edk-checklist .et_pb_icon_list_item:focus { outline: none; }
.edk-checklist .et_pb_icon_list_item:focus-visible .et-pb-icon {
    outline: 2px solid rgba(251, 80, 88, .4);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Button: ausgeblendet, bis genug angehakt ist (Klasse setzt das JS,
   im Visual Builder bleibt der Button dadurch sichtbar) */
.edk-check-btn {
    transition: opacity .4s ease, transform .4s ease, visibility 0s linear 0s;
}
.edk-check-btn.edk-check-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}

@media (prefers-reduced-motion: reduce) {
    .edk-check-btn,
    .edk-checklist .et-pb-icon,
    .edk-checklist .et-pb-icon::after { transition: none; }
}