/* Career Germany WordPress compatibility styles */
html,
body.cg {
  margin: 0;
  padding: 0;
  background: var(--bg, #FAFAF7);
}

body.cg.page,
body.cg.single,
body.cg.blog,
body.cg.archive {
  margin: 0;
}

.cg .post {
  margin-bottom: 0;
}

.cg a:visited {
  color: inherit;
}

.cg a {
  color: var(--red);
}

.cg a.btn-red,
.cg a.btn-dark,
.cg a.btn-wa,
.cg a.btn-outw {
  color: #FFFFFF;
}

.cg a.btn-out,
.cg a.btn-gold,
.cg a.btn-white,
.cg a.chip,
.cg a.tab,
.cg a.post {
  color: var(--ink);
}

.cg a.tab.on {
  color: #FFFFFF;
}

.cg .crumb a {
  color: var(--muted);
}

.cg .cg-topbar a {
  color: #FFFFFF;
}

.cg .cg-footer-links a,
.cg .cg-footer-bottom a,
.cg .cg-compact-footer a {
  color: #C9CDD4;
}

.cg .cg-footer-links a:hover,
.cg .cg-footer-bottom a:hover,
.cg .cg-compact-footer a:hover {
  color: #FFFFFF;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.cg-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.cg-header-icon img,
.cg-inline-svg-icon {
  display: block;
  flex-shrink: 0;
}

.cg-rich-list-content p:last-child {
  margin-bottom: 0;
}

/* Contact Form 7 Dynamic Form Integration */
.wpcf7 {
  width: 100%;
  margin: 0;
}

.cg-cf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.cg-cf7-form .fld input,
.cg-cf7-form .fld select {
  width: 100%;
}

.cg-cf7-form label.chk .wpcf7-form-control-wrap {
  width: auto;
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.cg-cf7-form label.chk .wpcf7-list-item {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.cg-cf7-form #cert-fieldset .wpcf7-form-control-wrap,
.cg-cf7-form #cert-fieldset .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  width: auto;
}

.cg-cf7-form #cert-fieldset .wpcf7-list-item {
  margin: 0;
}

.cg-cf7-form #cert-fieldset .wpcf7-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2, #4A5162);
  cursor: pointer;
  margin: 0;
}

.cg-cf7-form #cert-fieldset input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red, #C8102E);
}

.cg-cf7-form input.wpcf7-submit.btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.cg-cf7-form .wpcf7-spinner {
  display: none;
  margin: 4px auto 0;
}

.cg-cf7-form.submitting .wpcf7-spinner {
  display: inline-block;
}

.cg-cf7-form .wpcf7-not-valid-tip {
  color: var(--red-d, #B00E28);
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.wpcf7 form.cg-cf7-form.init .wpcf7-response-output,
.wpcf7 form.cg-cf7-form .wpcf7-response-output:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.wpcf7 form.cg-cf7-form .wpcf7-response-output {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #B7E1C7;
  background: #EAF6EE;
  color: #0B7A43;
}

.wpcf7 form.cg-cf7-form.invalid .wpcf7-response-output,
.wpcf7 form.cg-cf7-form.unaccepted .wpcf7-response-output,
.wpcf7 form.cg-cf7-form.failed .wpcf7-response-output,
.wpcf7 form.cg-cf7-form.aborted .wpcf7-response-output {
  background: var(--red-soft, #FDF2F4);
  color: var(--red-d, #B00E28);
  border-color: rgba(200, 16, 46, 0.25);
}
