.jhb-so-arbeiten {
  --jhb-orange: #E9620B;
  --jhb-text: #1a1a1a;
  --jhb-bg-page: #ffffff;
  --jhb-band-light: #fff7ef;
  --jhb-band-soft: #fffdf9;
  --jhb-band-alt: #fff3e5;
  --jhb-card: #ffffff;
  --jhb-border: #e2ddd7;

  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--jhb-text);
  background: var(--jhb-bg-page);
  font-size: 0.98rem;
}

.jhb-so-arbeiten * {
  box-sizing: border-box;
}

@media (min-width: 960px) {
  .jhb-so-arbeiten {
    font-size: 1.02rem;
  }
}

.jhb-so-arbeiten h1,
.jhb-so-arbeiten h2,
.jhb-so-arbeiten h3 {
  margin-top: 0;
  line-height: 1.2;
}

.jhb-so-arbeiten h1 {
  font-size: clamp(2.3rem, 4.4vw, 3rem);
  color: var(--jhb-orange);
}

.jhb-so-arbeiten h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.jhb-so-arbeiten h3 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.jhb-so-arbeiten p {
  margin: 0 0 0.8rem;
  line-height: 1.6;
}

.jhb-so-arbeiten a {
  color: var(--jhb-orange);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
}

.jhb-so-arbeiten a:hover {
  text-decoration: underline;
}

.jhb-so-arbeiten .page {
  width: 100%;
}

/* Bänder / Grundlayout */

.jhb-so-arbeiten .band {
  width: 100%;
  padding: 40px 16px;
}

@media (min-width: 960px) {
  .jhb-so-arbeiten .band {
    padding: 64px 16px;
  }
}

.jhb-so-arbeiten .band--hero {
  position: relative;
  overflow: hidden;
  padding: 72px 16px 88px;
  background: radial-gradient(circle at 0% 0%, #ffe4c5 0%, #fff3e5 32%, #ffffff 72%);
  min-height: min(72vh, 640px);
}

.jhb-so-arbeiten .band--hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10vw;
  height: 18vw;
  background: var(--jhb-band-light);
  transform: skewY(-3deg);
  transform-origin: top left;
}

.jhb-so-arbeiten .band--hero > .content {
  position: relative;
  z-index: 1;
}

.jhb-so-arbeiten .band--light {
  background: var(--jhb-band-light);
}

.jhb-so-arbeiten .band--soft {
  background: var(--jhb-band-soft);
}

.jhb-so-arbeiten .band--alt {
  background: var(--jhb-band-alt);
}

.jhb-so-arbeiten .band--white {
  background: #ffffff;
}

.jhb-so-arbeiten .content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Section-Header */

.jhb-so-arbeiten .section-head {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.jhb-so-arbeiten .section-head::after {
  content: "";
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--jhb-orange);
  opacity: 0.12;
  display: block;
  margin: 14px auto 0;
}

.jhb-so-arbeiten .section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jhb-orange);
  margin-bottom: 6px;
}

.jhb-so-arbeiten .section-intro {
  max-width: 640px;
  margin: 8px auto 0;
  font-size: 0.98rem;
}

/* Grid */

.jhb-so-arbeiten .grid {
  display: grid;
  gap: 20px;
}

.jhb-so-arbeiten .grid-2 {
  grid-template-columns: minmax(0, 1fr);
}

.jhb-so-arbeiten .grid-3 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 780px) {
  .jhb-so-arbeiten .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jhb-so-arbeiten .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Karten / Pillen */

.jhb-so-arbeiten .card {
  background: var(--jhb-card);
  border-radius: 16px;
  border: 1px solid var(--jhb-border);
  padding: 18px 16px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out,
    background-color 0.16s ease-out;
}

.jhb-so-arbeiten .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.jhb-so-arbeiten .card--center {
  text-align: center;
}

.jhb-so-arbeiten .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.jhb-so-arbeiten .pill {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 221, 215, 0.9);
  background: #ffffff;
  font-size: 0.88rem;
  white-space: nowrap;
}

.jhb-so-arbeiten .pill-row--left {
  justify-content: flex-start;
}

/* Kleine Listen */

.jhb-so-arbeiten ul,
.jhb-so-arbeiten ol {
  padding-left: 1.1rem;
}

.jhb-so-arbeiten li {
  text-align: left;
}

.jhb-so-arbeiten .value-list {
  margin: 0.2rem 0 0;
}

.jhb-so-arbeiten .value-list li {
  margin-bottom: 0.35rem;
}

/* Buttons */

.jhb-so-arbeiten .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.jhb-so-arbeiten .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.1s ease-out,
    box-shadow 0.1s ease-out,
    background 0.1s ease-out,
    border-color 0.1s ease-out;
  white-space: nowrap;
}

.jhb-so-arbeiten .btn-primary {
  background: var(--jhb-orange);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(233, 98, 11, 0.25);
  position: relative;
  overflow: hidden;
}

.jhb-so-arbeiten .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(233, 98, 11, 0.3);
}

.jhb-so-arbeiten .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.65), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  transform: translateX(-10%);
}

.jhb-so-arbeiten .btn-primary:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.jhb-so-arbeiten .btn-secondary {
  background: #ffffff;
  color: var(--jhb-text);
  border-color: var(--jhb-border);
}

.jhb-so-arbeiten .btn-secondary:hover {
  background: #fff3e8;
}

.jhb-so-arbeiten .btn:focus-visible,
.jhb-so-arbeiten a:focus-visible {
  outline: 2px solid var(--jhb-orange);
  outline-offset: 3px;
}

/* HERO */

.jhb-so-arbeiten .hero {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.jhb-so-arbeiten .hero-text p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.jhb-so-arbeiten .hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--jhb-orange);
  margin-bottom: 12px;
}

.jhb-so-arbeiten .hero-sub {
  font-size: 1.06rem;
  margin-bottom: 0.9rem;
}

.jhb-so-arbeiten .hero-meta {
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.jhb-so-arbeiten .hero-visual {
  margin-top: 4px;
}

.jhb-so-arbeiten .hero-illustration {
  max-width: clamp(480px, 42vw, 620px);
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  animation: jhb-float 7s ease-in-out infinite;
}

.jhb-so-arbeiten .hero-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  display: inline-block;
}

@keyframes jhb-float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jhb-so-arbeiten .hero-illustration {
    animation: none;
  }
}

@media (min-width: 900px) {
  .jhb-so-arbeiten .hero {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 56px;
  }

  .jhb-so-arbeiten .hero-text {
    flex: 1.1;
  }

  .jhb-so-arbeiten .hero-text p {
    margin-left: 0;
    margin-right: 0;
  }

  .jhb-so-arbeiten .hero-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: translateY(10px);
  }

  .jhb-so-arbeiten .hero-caption {
    text-align: right;
    max-width: 360px;
  }

  .jhb-so-arbeiten .btn-row {
    justify-content: flex-start;
  }

  /* Button "Unsere Haltung" nur auf Desktop ausblenden */
  .jhb-so-arbeiten .btn[href="#haltung"] {
    display: none;
  }
}

/* Zweispaltig: Text + Box */

.jhb-so-arbeiten .split {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
  .jhb-so-arbeiten .split {
    grid-template-columns: 1.2fr 1fr;
    align-items: flex-start;
  }
}

/* Spezial: Lead-Quote */

.jhb-so-arbeiten .lead-quote {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  position: relative;
  padding: 16px 32px;
  border-radius: 16px;
  background: rgba(233, 98, 11, 0.08);
  color: var(--jhb-orange);
  line-height: 1.45;
}

.jhb-so-arbeiten .lead-quote::before {
  content: "„";
  position: absolute;
  top: -16px;
  left: 10px;
  font-size: 2.6rem;
  color: rgba(233, 98, 11, 0.35);
  line-height: 1;
}

.jhb-so-arbeiten .lead-quote::after {
  content: "“";
  position: absolute;
  bottom: -18px;
  right: 12px;
  font-size: 2.2rem;
  color: rgba(233, 98, 11, 0.35);
  line-height: 1;
}

/* Cards in Splits etwas getönt */

.jhb-so-arbeiten .split .card {
  background: #fffdf9;
}

/* Karten mit Label (Ambulant/Stationär) */

.jhb-so-arbeiten .card--with-label {
  position: relative;
  padding-top: 34px;
  background: #fffdf9;
}

.jhb-so-arbeiten .card-label {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--jhb-orange);
  opacity: 0.85;
}

/* Abschnitt Haltung – Hintergrund & linkes Panel */

.jhb-so-arbeiten #haltung.band--white {
  background: linear-gradient(180deg, #fff8f1 0%, #ffffff 65%);
}

@media (min-width: 860px) {
  .jhb-so-arbeiten #haltung .split > div:first-child {
    background: #fff9f3;
    border-radius: 18px;
    padding: 24px 26px 26px;
    border: 1px solid rgba(233, 98, 11, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  }
}

.jhb-so-arbeiten #haltung .split > div:first-child p {
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.65;
}

.jhb-so-arbeiten #haltung .split > div:first-child p + p {
  margin-top: 0.7rem;
}

/* Timeline / Schritte */

.jhb-so-arbeiten .timeline {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 720px) {
  .jhb-so-arbeiten .timeline {
    padding-left: 12px;
  }
}

.jhb-so-arbeiten .timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  align-items: flex-start;
  position: relative;
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 221, 215, 0.9);
}

.jhb-so-arbeiten .timeline-step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: -18px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(233, 98, 11, 0.09), rgba(233, 98, 11, 0));
  z-index: -1;
}

.jhb-so-arbeiten .timeline-step:first-child::before {
  top: 16px;
}

.jhb-so-arbeiten .timeline-step:last-child::before {
  bottom: 22px;
}

.jhb-so-arbeiten .timeline-label {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--jhb-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--jhb-orange);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  margin-top: 2px;
}

.jhb-so-arbeiten .timeline-content h3 {
  margin-bottom: 4px;
}

.jhb-so-arbeiten .timeline-content p {
  margin-bottom: 0.4rem;
}

.jhb-so-arbeiten .timeline-note {
  font-size: 0.87rem;
  color: rgba(0, 0, 0, 0.7);
}

/* Qualität – Icons & Karten zentriert */

.jhb-so-arbeiten #qualitaet .card {
  text-align: center;
}

.jhb-so-arbeiten #qualitaet .card h3 {
  margin-top: 4px;
  margin-bottom: 10px;
}

.jhb-so-arbeiten #qualitaet .card p {
  text-align: left;
}

/* FAQ – Accordion */

.jhb-so-arbeiten .faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.jhb-so-arbeiten .faq-item {
  border-radius: 16px;
  border: 1px solid rgba(226, 221, 215, 0.9);
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.jhb-so-arbeiten .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 600;
}

.jhb-so-arbeiten .faq-item summary::-webkit-details-marker {
  display: none;
}

.jhb-so-arbeiten .faq-question {
  flex: 1;
}

.jhb-so-arbeiten .faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--jhb-orange);
  border-bottom: 2px solid var(--jhb-orange);
  transform: rotate(45deg);
  transition: transform 0.18s ease-out;
  margin-top: 4px;
  flex-shrink: 0;
}

.jhb-so-arbeiten .faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 7px;
}

.jhb-so-arbeiten .faq-body {
  padding: 0 16px 12px 16px;
  border-top: 1px solid rgba(226, 221, 215, 0.7);
}

.jhb-so-arbeiten .faq-body p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.jhb-so-arbeiten .faq-item summary:focus-visible {
  outline: 2px solid var(--jhb-orange);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Kontakt */

.jhb-so-arbeiten .contact {
  text-align: center;
}

.jhb-so-arbeiten .contact p {
  margin-bottom: 0.3rem;
}

/* Modernisierte Cards für Zusammenarbeit */

.jhb-so-arbeiten .card--badge {
  position: relative;
  text-align: center;
  padding-top: 36px;
}

.jhb-so-arbeiten .card-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff9f3 0%, #ffe3c8 40%, #ffd3aa 100%);
  border: 1px solid rgba(233, 98, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.jhb-so-arbeiten .card-badge svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.jhb-so-arbeiten .card--badge h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  margin-top: 0.4rem;
}

.jhb-so-arbeiten .card--badge p {
  text-align: center;
}

.jhb-so-arbeiten .card--badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

/* Qualität – Icons zentriert & gleich groß */

.jhb-so-arbeiten #qualitaet .card .icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jhb-so-arbeiten #qualitaet .card .icon-circle img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* Scroll-Reveal Animation */

.jhb-so-arbeiten .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease-out,
    transform 0.45s ease-out;
}

.jhb-so-arbeiten .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.jhb-so-arbeiten .reveal--delay-1 {
  transition-delay: 0.08s;
}

.jhb-so-arbeiten .reveal--delay-2 {
  transition-delay: 0.16s;
}

.jhb-so-arbeiten .reveal--delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .jhb-so-arbeiten .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Fallback, falls JS gar nicht läuft */
.no-js .jhb-so-arbeiten .reveal {
  opacity: 1;
  transform: none;
}

/* -----------------------------
   MOBILE-OPTIMIERUNGEN
------------------------------ */

/* Buttons auf Handy gleich breit & untereinander */
@media (max-width: 899px) {
  .jhb-so-arbeiten .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .jhb-so-arbeiten .btn-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Orangene Texte auf Handy zentrieren und etwas mehr Abstand */
@media (max-width: 780px) {
  .jhb-so-arbeiten .section-kicker,
  .jhb-so-arbeiten .hero-kicker,
  .jhb-so-arbeiten .card-label,
  .jhb-so-arbeiten .lead-quote {
    text-align: center;
  }

  .jhb-so-arbeiten .section-kicker,
  .jhb-so-arbeiten .hero-kicker {
    margin-bottom: 10px;
  }

  /* Card-Label zentriert über den Karten */
  .jhb-so-arbeiten .card--with-label {
    padding-top: 40px;
  }

  .jhb-so-arbeiten .card-label {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* SGB-Badges auf Handy: edler, zwei nebeneinander */
@media (max-width: 600px) {
  .jhb-so-arbeiten .pill-row {
    justify-content: flex-start;
  }

  .jhb-so-arbeiten .pill-row .pill {
    min-width: calc(50% - 6px);
    text-align: center;
    white-space: normal;
  }
}

/* Timeline-Zahlen auf Handy zentriert über dem Text */
@media (max-width: 720px) {
  .jhb-so-arbeiten .timeline-step {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 18px;
  }

  .jhb-so-arbeiten .timeline-step::before {
    display: none;
  }

  .jhb-so-arbeiten .timeline-label {
    margin: 0 auto 8px auto;
  }
}

/* FAQ auf Handy linksbündig */
@media (max-width: 780px) {
  .jhb-so-arbeiten .faq-item summary,
  .jhb-so-arbeiten .faq-body p {
    text-align: left;
  }
}

/* Texte in Qualitätskarten und letztem Fachlichkeits-Abschnitt
   auf Handy zentrieren für harmonischere Optik */
@media (max-width: 780px) {
  .jhb-so-arbeiten #qualitaet .card p,
  .jhb-so-arbeiten #qualitaet .card h3 {
    text-align: center;
  }

  /* Split-Card im Fachlichkeitsabschnitt ("Reflexion & Qualitätssicherung") */
  .jhb-so-arbeiten .band--alt .split .card h3,
  .jhb-so-arbeiten .band--alt .split .card p {
    text-align: center;
  }
}
