/* ============================================
   HILFE-SEITEN — Template
   Designer: Claude (Usability & CI)
   Stand: 2026-03-17
   Max-width 680px, klare Hierarchie,
   Mobile: Akkordeon
   ============================================ */

/* --- Container --- */
.wbs-help {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #374151;
  line-height: 1.6;
}

/* --- Zurück-Link --- */
.wbs-help__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.12s;
}

.wbs-help__back:hover {
  color: #1e40af;
}

.wbs-help__back:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

/* --- Titel --- */
.wbs-help__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
  line-height: 1.3;
}

.wbs-help__subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 32px;
}

/* --- Schritte / Nummern --- */
.wbs-help__steps {
  counter-reset: help-step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wbs-help__step {
  counter-increment: help-step;
  margin-bottom: 24px;
  padding-left: 44px;
  position: relative;
}

.wbs-help__step::before {
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: #1e40af;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wbs-help__step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 6px;
}

.wbs-help__step-text {
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0;
}

/* --- Tipp-Box --- */
.wbs-help__tip {
  margin: 24px 0;
  padding: 14px 18px;
  background-color: #f0f9ff;
  border-left: 3px solid #1e40af;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.5;
}

.wbs-help__tip strong {
  color: #1e40af;
}

/* --- Fließtext-Absätze --- */
.wbs-help__paragraph {
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0 0 16px;
  line-height: 1.65;
}

/* --- Kontakt-Box am Ende --- */
.wbs-help__contact {
  margin-top: 32px;
  padding: 16px 20px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 0.82rem;
  color: #6b7280;
}

.wbs-help__contact a {
  color: #1e40af;
  font-weight: 500;
  text-decoration: none;
}

.wbs-help__contact a:hover {
  text-decoration: underline;
}

/* --- Suche (Hilfe-Übersicht) --- */
.wbs-help__search {
  width: 100%;
  padding: 10px 14px 10px 36px;
  font-family: inherit;
  font-size: 0.88rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.wbs-help__search:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

/* ============================================
   MOBILE: Akkordeon (< 768px)
   ============================================ */
@media (max-width: 767px) {
  .wbs-help { padding: 16px 16px 32px; }
  .wbs-help__title { font-size: 1.25rem; }

  /* Akkordeon-Items */
  .wbs-help__accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
  }

  .wbs-help__accordion-item {
    border-bottom: 1px solid #e5e7eb;
  }

  .wbs-help__accordion-item:last-child {
    border-bottom: none;
  }

  .wbs-help__accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    background: #ffffff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.12s;
  }

  .wbs-help__accordion-trigger:hover {
    background-color: #f9fafb;
  }

  .wbs-help__accordion-trigger:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: -2px;
  }

  .wbs-help__accordion-chevron {
    font-size: 0.8rem;
    color: #9ca3af;
    transition: transform 0.2s;
    flex-shrink: 0;
  }

  .wbs-help__accordion-item--open .wbs-help__accordion-chevron {
    transform: rotate(180deg);
  }

  .wbs-help__accordion-content {
    display: none;
    padding: 0 16px 16px;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
  }

  .wbs-help__accordion-item--open .wbs-help__accordion-content {
    display: block;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .wbs-help__accordion-chevron { transition: none; }
}
