/* ============================================================================
   GeneratePress Child Theme — components.css
   Voucher, Discount, s5o-legal (Voucher), ProvenExpert Seal, Code Directory Structure
   ============================================================================ */

.fas.fa-check::before,
.fas.fa-plus::before {
  font-family: "ScanadoIcoWeb" !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fas.fa-check::before { content: "\e101"; }
.fas.fa-plus::before  { content: "\e103"; }

/* ==========================================================================
   Code / Directory Structur
   ========================================================================== */
.s5o-directory-dark {
  background-color: var(
    --s5o-neutral-grey-700
  ); /* COLMIG: was s5o-c-grey-dark-1 (#333332 → #4f5668 Blaugrau statt Dunkelgrau) */
  color: var(--s5o-text-inverse);
  padding: 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  font-family: var(--s5o-f-text-mono);
}

/* ==========================================================================
   ProvenExpert Seal
   ========================================================================== */

.pe-pro-seal {
  top: 460px !important;
  bottom: unset !important;
}

/* MOD Voucher - Order
   ========================================================================== */
.s5o-voucher-order {
  background-color: var(--s5o-surface-white);
  margin-bottom: 2rem;
}

.s5o-voucher-order-details-preview h3 {
  font-weight: initial !important;
  font-size: 1.75rem !important;
}

/* MOD Discount
   ========================================================================== */
.s5o-voucher-btn {
  border: 2px dashed black !important;
  border-radius: 1rem;
  background-image: url("/wp-content/uploads/cms/common/couponcode_guilloche_1-300x300.webp") !important;
  padding: 2rem;
  color: var(--s5o-deep-cyan);
  font-size: 2rem !important;
  line-height: 2rem !important;
}

.s5o-voucher-btn:hover {
  color: var(--s5o-neutral-black) /* COLMIG: was s5o-c-pure-black (1:1 match) */;
}

/* s5o legal (s5o-legal/Voucher)
   ========================================================================== */
/* #region */
.s5o-legal {
  -moz-column-count: 2;
  -webkit-column-count: 2;
  column-count: 2;
  font-size: 0.9rem;
  line-height: 1.125rem;
  font-family: var(--s5o-f-text-cond);
  hyphens: auto;
  text-align: justify;
}

.s5o-legal.__col-1 {
  -moz-column-count: 1;
  -webkit-column-count: 1;
  column-count: 1;
}

.s5o-legal h2,
.s5o-legal h3,
.s5o-legal h4,
.s5o-legal h5 {
  margin: 0.5rem 0;
  color: var(--s5o-content-primary);
  font-weight: 700;
  font-family: var(--s5o-f-text-cond);
  text-transform: unset;
}

.s5o-legal h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  margin-left: -5px;
  border-left: 5px solid var(--s5o-content-primary);
  padding-bottom: 1rem;
  padding-left: 1rem;
  color: var(--s5o-content-primary);
  font-size: 1.25rem;
}

.s5o-legal h3 {
  margin-top: 2rem;
  border-bottom: 1px solid var(--s5o-content-primary);
  font-size: 1.25rem;
}

.s5o-legal h4 {
  font-size: 1.125rem;
}

.s5o-legal h5 {
  font-size: 1rem;
}

.s5o-legal > h2:first-child,
.s5o-legal > h3:first-child {
  margin-top: 0;
}

.s5o-legal ol li {
  text-align: justify;
}

.s5o-legal > ol {
  counter-reset: listenpunkt_l1;
  margin-left: 0;
  font-weight: bold;
  list-style-type: none;
}

.s5o-legal > ol > li {
  margin-bottom: 0.5em !important;
}

.s5o-legal > ol > li::before {
  counter-increment: listenpunkt_l1;
  content: "§ " counter(listenpunkt_l1) " ";
  /* ALT: content: counter(listenpunkt_l1) ". "; */
}

.s5o-legal > ol > li > ol {
  counter-reset: listenpunkt_l2;
  font-weight: 400;
  list-style-type: none;
}

.s5o-legal > ol > li > ol > li::before {
  counter-increment: listenpunkt_l2;
  content: counter(listenpunkt_l1) "." counter(listenpunkt_l2) " ";
  font-weight: bold;
}

.s5o-legal > ol > li > ol > li > ol {
  counter-reset: listenpunkt_l3;
  font-weight: 400;
  list-style-type: none;
}

.s5o-legal > ol > li > ol > li > ol > li::before {
  counter-increment: listenpunkt_l3;
  content: counter(listenpunkt_l1) "." counter(listenpunkt_l2) "."
    counter(listenpunkt_l3) " ";
  font-weight: bold;
}

.s5o-legal blockquote {
  font-size: 0.8rem !important;
  font-style: normal !important;
  padding: 0 0 0 1rem;
  margin: 1rem 0;
}

.s5o-legal p,
.s5o-legal li {
  orphans: 2; /* At least two lines at the beginning of the column */
  widows: 2; /* At least two lines at the end of the column */
}

/* #endregion */

/* Tools - USB-Stick Testtool (s5o-wp-usbcheck)
   Page /tools/usb-stick/ (19928): download box (custom HTML block), start guides,
   steps, screenshots, result cards. Source: alpemedia-usbcheck/tools/website/
   s5o-wp-usbcheck.css - edit there, then replace this section.
   States switched by script use the hidden attribute / details[open], no extra
   classes: Perfmatters drops rules whose classes are not in the first HTML.
   ========================================================================== */
/* #region */
.s5o-wp-usbcheck {
  margin: 0 0 1rem;
  hyphens: manual;
}

.s5o-wp-usbcheck__icon {
  flex: none;
  vertical-align: -4px;
}

ul.s5o-wp-usbcheck__facts { /* element selector: beats the theme's list indent */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.s5o-wp-usbcheck__fact {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 1px solid var(--s5o-neutral-grey-100);
  border-radius: 999px;
  background: var(--s5o-surface-white);
  padding: 6px 14px;
  font-size: 0.95em;
}

.s5o-wp-usbcheck__fact .s5o-wp-usbcheck__icon {
  color: var(--s5o-brand-secondary-dark);
}

.s5o-wp-usbcheck__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--s5o-neutral-grey-100);
  border-radius: 10px;
  background: var(--s5o-surface-white);
  padding: 24px;
}

.s5o-wp-usbcheck__logo {
  width: 64px;
  height: 64px;
}

.s5o-wp-usbcheck__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  background: var(--s5o-brand-secondary-dark);
  padding: 13px 24px;
  color: var(--s5o-text-inverse) !important;
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none !important;
}

.s5o-wp-usbcheck__btn:hover {
  background: var(--s5o-deep-blue);
}

.s5o-wp-usbcheck__meta {
  margin-top: 6px;
  color: var(--s5o-neutral-grey-700);
  font-size: 0.9em;
}

.s5o-wp-usbcheck__others {
  margin-top: 12px;
  color: var(--s5o-neutral-grey-700);
  font-size: 0.9em;
}

.s5o-wp-usbcheck__others a {
  margin-right: 14px;
  color: var(--s5o-brand-secondary-dark);
  white-space: nowrap;
}

.s5o-wp-usbcheck__hint {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 100000; /* just above the sticky menu bar (99999) */
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  background: var(--s5o-neutral-navy);
  padding: 14px 18px;
  max-width: 310px;
  color: var(--s5o-text-inverse);
}

.s5o-wp-usbcheck__hint-close {
  cursor: pointer;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: none;
  padding: 4px 10px;
  color: var(--s5o-text-inverse);
}

/* Start guides: core Details blocks, one per system */
.s5o-wp-usbcheck-guide {
  counter-reset: s5o-wp-usbcheck-step;
  margin: 0 0 10px;
  border: 1px solid var(--s5o-neutral-grey-100);
  border-radius: 8px;
  background: var(--s5o-surface-white);
  padding: 0 24px;
}

.s5o-wp-usbcheck-guide > summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  font-size: 1.1em;
}

.s5o-wp-usbcheck-guide[open] {
  padding-bottom: 8px;
}

/* Numbered step: group block with title, text and optional note/screenshots */
.s5o-wp-usbcheck-step {
  position: relative;
  counter-increment: s5o-wp-usbcheck-step;
  margin: 0 0 22px;
  padding-left: 44px;
}

.s5o-wp-usbcheck-step::before {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--s5o-brand-secondary-dark);
  width: 28px;
  height: 28px;
  content: counter(s5o-wp-usbcheck-step);
  color: var(--s5o-text-inverse);
  font-weight: 700;
  font-size: 0.95rem;
}

.s5o-wp-usbcheck-step > * {
  margin-top: 0;
  margin-bottom: 10px;
}

.s5o-wp-usbcheck-step > :last-child {
  margin-bottom: 0;
}

.s5o-wp-usbcheck-step__title {
  margin: 0 0 6px;
  color: var(--s5o-text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 28px;
  font-family: var(--s5o-f-text);
  text-transform: none;
}

.s5o-wp-usbcheck-note {
  border-left: 4px solid var(--s5o-content-gold);
  border-radius: 6px;
  background: var(--s5o-surface-sand);
  padding: 12px 16px;
  color: var(--s5o-text-on-warm);
}

.s5o-wp-usbcheck-shots {
  gap: 20px;
}

.s5o-wp-usbcheck-shots figure {
  margin: 0;
}

.s5o-wp-usbcheck-shots figcaption {
  margin-top: 6px;
  color: var(--s5o-neutral-grey-700);
  font-size: 0.9em;
  text-align: left;
}

/* Result cards */
.s5o-wp-usbcheck-result {
  gap: 20px;
}

.s5o-wp-usbcheck-result__card {
  border: 1px solid var(--s5o-neutral-grey-100);
  border-radius: 10px;
  background: var(--s5o-surface-white);
  padding: 20px 22px;
}

.s5o-wp-usbcheck-result__card > :last-child {
  margin-bottom: 0;
}

.s5o-wp-usbcheck-result__dot {
  display: inline-block;
  margin-right: 0.35em;
  border-radius: 50%;
  width: 0.7em;
  height: 0.7em;
}

.s5o-wp-usbcheck-result__dot--green {
  background: var(--s5o-cta-success);
}

.s5o-wp-usbcheck-result__dot--yellow {
  background: var(--s5o-surface-honey);
}

.s5o-wp-usbcheck-result__dot--red {
  background: var(--s5o-cta-error);
}

@media (max-width: 768px) {
  .s5o-wp-usbcheck-guide {
    padding: 0 16px;
  }

  .s5o-wp-usbcheck-step {
    padding-left: 38px;
  }
}
/* #endregion */
