/* ============================================================
   JHB LEISTUNGSANGEBOTE – PAGE STYLES (CLEAN STRUCTURE)
   1) PAGE SCOPE / TOKENS
   2) TYPOGRAFIE & BUTTONS
   3) LAYOUT & GRIDS
   4) HERO (Vollbild mit Hintergrundbild)
   5) KARTEN / LISTEN / FAQ / SEO
   ============================================================ */

/* =========  PAGE SCOPE  ========= */
.jhb-angebote{
  --brand:#E9620B;
  --brand-500:#F97316;
  --brand-600:#EA580B;
  --ink:#0f172a;
  --muted:#475569;
  --line:#e6edf5;
  --radius:18px;
  --radius-lg:24px;
  --shadow-1:0 10px 22px rgba(15,23,42,.08);
  --shadow-2:0 18px 40px rgba(15,23,42,.16);
  --max:1080px;
  --card-min:430px; /* equal height auf Desktop, leicht erhöht für Balance */

  /* Global Spacing Scale */
  --space-1:8px;
  --space-2:12px;
  --space-3:16px;
  --space-4:24px;
  --space-5:32px;
  --space-6:40px;

    --space-7:56px;
  --space-8:72px;
  --space-9:88px;
font-family:"Nunito",ui-sans-serif,system-ui;
  color:var(--ink);
  background:#fff;
}
.jhb-angebote *{box-sizing:border-box}
.jhb-angebote img{max-width:100%;height:auto;display:block}
.jhb-angebote .wrap{max-width:var(--max);margin:0 auto;padding:0 var(--space-4)}
.jhb-angebote .section{padding:96px 0}
@media (max-width:1024px){
  .jhb-angebote .wrap{padding:0 var(--space-3)}
}
@media (max-width:768px){
  .jhb-angebote .section{padding:76px 0}
}

/* remove bullets inside scope */
.jhb-angebote ul{list-style:none;margin:0;padding:0}
.jhb-angebote li{margin:0}

/* Typo */
.jhb-angebote .grid--offers .card h3,
.jhb-angebote .grid--offers .card .card-text{
  text-align:left;
  margin-left:0;
  margin-right:0;
}
.jhb-angebote h1{
  font:900 clamp(40px,6.2vw,58px)/1.12 "Nunito",sans-serif;
  color:var(--brand);
  text-align:center;
  margin:0 0 var(--space-2);
}
.jhb-angebote h1::after{
  content:"";
  display:block;
  width:80px;
  height:4px;
  margin:10px auto 0;
  border-radius:999px;
  background:var(--brand);
}
.jhb-angebote h2{
  font:900 clamp(28px,4vw,36px)/1.18 "Nunito",sans-serif;
  color:var(--brand);
  text-align:center;
  margin:0 0 var(--space-2);
}
.jhb-angebote .heading--stack-mobile{
  display:block;
  width:100%;
  margin:0 0 var(--space-2);
}
.jhb-angebote .heading--stack-mobile span{
  display:inline;
}
@media (max-width:520px){
  .jhb-angebote .heading--stack-mobile span{
    display:block;
  }
}
.jhb-angebote .mt-section{
  position:relative;
  margin-top:var(--space-9);
  padding-top:var(--space-7);
}

.jhb-angebote .mt-section::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:160px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(233,98,11,0), rgba(233,98,11,.32), rgba(233,98,11,0));
}

.jhb-angebote h3{
  font:900 clamp(18px,2vw,20px)/1.25 "Nunito",sans-serif;
  margin:.35rem 0 .4rem;
  text-align:center;
}
.jhb-angebote .lead{
  max-width:72ch;
  margin:0 auto var(--space-6);
  color:#334155;
  text-align:center;
  line-height:1.6;
}
.jhb-angebote .lead.small{
  font-size:.98rem;
  color:#475569;
}
.jhb-angebote .section:not(.hero) .lead,
.jhb-angebote .section:not(.hero) .lead.small{
  margin-bottom:var(--space-5);
}
.jhb-angebote #angebote .lead.small{
  margin-bottom:var(--space-4);
}

/* Button */
.jhb-angebote .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  border-radius:9999px;
  border:none;
  padding:12px 24px;
  font-weight:900;
  letter-spacing:.01em;
  color:#fff;
  background:linear-gradient(180deg,var(--brand-500),var(--brand-600));
  box-shadow:0 14px 32px rgba(234,88,11,.35);
  text-decoration:none;
  line-height:1;
  box-shadow:0 10px 26px rgba(234,88,11,.35);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}
.jhb-angebote .btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
  box-shadow:0 18px 40px rgba(234,88,11,.4);
}
.jhb-angebote .cta-row{
  text-align:center;
  margin-top:var(--space-2);
}

/* ============================================================
   4) HERO – Vollbild mit Hintergrundbild 
   ============================================================ */

.jhb-angebote .hero.hero--bg.section{
  padding:0;
}

.jhb-angebote .hero.hero--bg{
  position:relative;
  width:100vw;
  min-height:100vh;
  margin-left:calc(50% - 50vw);
  overflow:hidden;

  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  color:#fff;
  background-image:url('https://jhb-gmbh.de/wp-content/uploads/2025/12/Haltende-Haende-–-Unterstuetzung-Naehe.png');
  background-size:cover;
  background-position:center 70%;
  background-repeat:no-repeat;
}

/* Overlay für Lesbarkeit */
.jhb-angebote .hero.hero--bg::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.40) 40%,
      rgba(0,0,0,0.20) 75%,
      rgba(0,0,0,0.00) 100%
    );
  z-index:0;
}

/* Diagonale Welle nach unten – endet auf Weiß */
.jhb-angebote .hero.hero--bg::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  width:100%;
  height:120px;
  background:#fff;
  clip-path:polygon(0 75%,100% 15%,100% 100%,0 100%);
  pointer-events:none;
  z-index:0;
}

/* Inhalt im Vordergrund */
.jhb-angebote .hero.hero--bg .wrap{
  position:relative;
  z-index:1;
}

/* H1 Typografie im Hero */
.jhb-angebote .hero.hero--bg h1{
  font-weight:900;
  font-size:clamp(34px,5vw,52px);
  letter-spacing:.01em;
  margin:0 0 12px;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}
.jhb-angebote .hero.hero--bg h1::after{
  background:#fff;
  opacity:.9;
}

.jhb-angebote .hero.hero--bg .lead{
  max-width:56ch;
  margin:4px auto 32px;
  font-size:clamp(16px,2vw,20px);
  font-weight:600;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}

.jhb-angebote .hero.hero--bg .cta-row{
  margin-top:12px;
}

/* Hero-Button – Orange wie Home */
.jhb-angebote .hero.hero--bg .btn{
  background:linear-gradient(180deg,var(--brand-500),var(--brand-600));
  color:#fff;
  border:none;
  padding:12px 26px;
  font-weight:900;
  box-shadow:0 14px 32px rgba(0,0,0,.35);
}
.jhb-angebote .hero.hero--bg .btn:hover{
  transform:translateY(-1px);
}

/* Mobile: Höhe & Typo wie Standorte + Hochformat-Bild */
@media (max-width:640px){
  .jhb-angebote .hero.hero--bg{
    min-height:70vh;
    padding:96px 0 70px;
    background-position:center 55%;
    background-image:url('https://jhb-gmbh.de/wp-content/uploads/2025/12/Haltende-Haende-–-Unterstuetzung-Naehe-916.png');
  }

  .jhb-angebote .hero.hero--bg::after{
    height:60px;
  }

  .jhb-angebote .hero.hero--bg h1{
    font-size:26px;
    line-height:1.18;
  }

  .jhb-angebote .hero.hero--bg .lead{
    font-size:14px;
  }
}

/* ============================================================
   3) LAYOUT & GRIDS
   ============================================================ */

.jhb-angebote .grid{display:grid;gap:var(--space-4)}
@media (max-width:520px){
  .jhb-angebote .grid{gap:var(--space-3)}
}

.jhb-angebote .grid--hero{
  grid-template-columns:repeat(3,minmax(220px,1fr));
}
@media (max-width:980px){
  .jhb-angebote .grid--hero{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .jhb-angebote .grid--hero{grid-template-columns:1fr}
}

/* Kernraster für Karten */
.jhb-angebote .grid--offers{
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  align-items:stretch;
  gap:var(--space-5);
  margin-top:var(--space-5);
}

/* Desktop: 3 Spalten für Ambulant + letzte Einzel-Karte mittig (z. B. 7 Angebote) */
@media (min-width:980px){
  .jhb-angebote .grid--offers:not(.grid--offers-stationaer){
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .jhb-angebote .grid--offers:not(.grid--offers-stationaer) > li:last-child:nth-child(3n+1){
    grid-column:2;
  }
}

@media (max-width:768px){
  .jhb-angebote .grid--offers{
    gap:var(--space-4);
    margin-top:var(--space-4);
  }
}

@media (max-width:520px){
  .jhb-angebote .grid--offers{
    gap:var(--space-3);
    margin-top:var(--space-3);
  }
}

.jhb-angebote .grid--offers>li>.card{
  max-width:100%;
  margin-inline:0;
}

.jhb-angebote .grid--offers>li,
.jhb-angebote .grid--offers-stationaer>li{
  display:flex;
}
.jhb-angebote .grid--offers>li>.card,
.jhb-angebote .grid--offers-stationaer>li>.card{
  flex:1;
}

/* Slim-Grid stationär */
.jhb-angebote .grid--offers-stationaer{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--space-5);
  margin-top:var(--space-5);
}
@media (max-width:980px){
  .jhb-angebote .grid--offers-stationaer{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:640px){
  .jhb-angebote .grid--offers-stationaer{
    grid-template-columns:1fr;
  }
}

.jhb-angebote .card-media-tagged{
  position:relative;
  overflow:hidden;
}
.jhb-angebote .card-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:rgba(148,163,184,.08);
  color:var(--muted);
  border:1px solid rgba(148,163,184,.5);
}
.jhb-angebote .card-tag--stationaer{
  background:rgba(233,98,11,.08);
  color:var(--brand);
  border-color:rgba(233,98,11,.5);
}

.jhb-angebote .grid--mini3{
  grid-template-columns:repeat(3,minmax(240px,1fr));
}
@media (max-width:960px){
  .jhb-angebote .grid--mini3{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .jhb-angebote .grid--mini3{grid-template-columns:1fr}
}

.jhb-angebote .grid--intro{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--space-4);
}
@media (max-width:640px){
  .jhb-angebote .grid--intro{grid-template-columns:1fr}
}

.jhb-angebote .grid--mini4{
  grid-template-columns:repeat(4,minmax(220px,1fr));
}
@media (max-width:1100px){
  .jhb-angebote .grid--mini4{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .jhb-angebote .grid--mini4{grid-template-columns:1fr}
}

.jhb-angebote .grid--costs{
  grid-template-columns:repeat(3,minmax(280px,1fr));
  align-items:stretch;
}
@media (max-width:980px){
  .jhb-angebote .grid--costs{grid-template-columns:1fr}
}
.jhb-angebote .grid--costs>li{display:flex}
.jhb-angebote .grid--costs>li>.card-simple{flex:1}

/* Cards */
.jhb-angebote .hcard{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow-1);
  padding:22px 20px;
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:.35rem;
  transition:transform .2s ease, box-shadow .2s ease;
}
.jhb-angebote .hcard:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-2);
}
.jhb-angebote .hcard svg{
  width:36px;
  height:36px;
  margin:0 auto 8px;
  display:block;
}
.jhb-angebote .hcard p{
  margin:0;
  color:#334155;
  font-size:.98rem;
}

.jhb-angebote .card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:var(--card-min);
  transition:transform .22s ease, box-shadow .22s ease;
}
@media (max-width:980px){
  .jhb-angebote .card{min-height:unset}
}
.jhb-angebote .card:hover{
  transform:translateY(-8px);
  box-shadow:0 22px 40px rgba(15,23,42,.18);
}
.jhb-angebote .card-media{
  width:100%;
  height:auto;
  display:block;
}
.jhb-angebote .card-body{
  padding:22px 22px 24px;
  display:flex;
  flex-direction:column;
  gap:var(--space-3);
  flex:1;
}

.jhb-angebote .card-body h3{text-align:left}
.jhb-angebote .card-text{
  color:#334155;
  margin:0;
  max-width:54ch;
  font-size:.875rem;
  line-height:1.5;
  text-align:left;
}
.jhb-angebote .card-actions{
  margin-top:auto;
  text-align:center;
  padding-top:var(--space-3);
}

.jhb-angebote .card .btn{min-width:120px}

.jhb-angebote .card-simple{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-1);
  padding:28px 26px;
  transition:transform .22s ease, box-shadow .22s ease;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:100%;
  text-align:center;
}
.jhb-angebote .card-simple:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(15,23,42,.12);
}
.jhb-angebote .card:focus-within,
.jhb-angebote .card-simple:focus-within{
  outline:2px solid color-mix(in srgb, var(--brand) 80%, white 20%);
  outline-offset:3px;
}

/* Pills */
.jhb-angebote .pills{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-1);
  justify-content:center;
  margin-bottom:4px;
}
.jhb-angebote .pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:9999px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.2px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 4px 12px rgba(15,23,42,.06);
  color:#374151;
}

/* --- Gradient Bridge --- */
.jhb-angebote .gradient-bridge{
  background:linear-gradient(180deg,#F3FBF6 0%, #FFF1E8 100%);
  padding:0;
}
.jhb-angebote .gradient-bridge .wrap{
  padding:92px var(--space-3);
}
@media (max-width:768px){
  .jhb-angebote .gradient-bridge .wrap{
    padding:72px var(--space-3);
  }
}

/* Kosten fixes */
.jhb-angebote #kosten{background:#fff}
.jhb-angebote #kosten .card-simple{
  background-color:#fff;
  background-image:none;
}
.jhb-angebote .checklist{
  display:grid;
  gap:var(--space-2);
  margin-top:10px;
  color:#334155;
}
.jhb-angebote .note{
  max-width:52ch;
  margin:var(--space-4) auto 0;
  text-align:center;
  font-size:.9rem;
  color:#64748b;
}
.jhb-angebote .section--seo .wrap{
  max-width:900px;
}
.jhb-angebote .seo-panel{
  text-align:left;
  max-width:900px;
  margin:var(--space-4) auto 0;
}
.jhb-angebote .seo-panel h3{
  text-align:left;
  margin-top:.8rem;
  margin-bottom:.4rem;
}
.jhb-angebote .seo-panel p{
  margin:0;
  color:#334155;
  line-height:1.7;
  font-size:.95rem;
}
.jhb-angebote .seo-panel p + p{
  margin-top:.6rem;
}
.jhb-angebote .seo-panel ul.seo-bullets{
  margin:.6rem 0 1rem;
  padding-left:1.2rem;
  color:#334155;
}
.jhb-angebote .seo-panel ul.seo-bullets li{
  margin-bottom:.4rem;
  line-height:1.6;
}

/* Mobile Override: SEO-Panel Text linksbündig */
@media (max-width:640px){
  .jhb-angebote #leistungen-info h2{
    text-align:center;
  }

  .jhb-angebote #leistungen-info .card-simple.seo-panel{
    text-align:left;
  }

  .jhb-angebote #leistungen-info .seo-panel h3,
  .jhb-angebote #leistungen-info .seo-panel p,
  .jhb-angebote #leistungen-info .seo-panel ul,
  .jhb-angebote #leistungen-info .seo-panel li{
    text-align:left;
  }
}

.jhb-angebote .checklist li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  text-align:left;
  line-height:1.6;
}
.jhb-angebote .checklist li + li{
  border-top:1px solid #e2e8f0;
  padding-top:6px;
  margin-top:6px;
}
.jhb-angebote .checklist svg{
  width:18px;
  height:18px;
  min-width:18px;
  max-width:18px;
  flex:0 0 18px;
  display:block;
  margin-top:3px;
}

/* FAQ */
.jhb-angebote .faq .wrap{max-width:900px}
.jhb-angebote .faq details{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow-1);
  padding:0;
  overflow:hidden;
  margin:14px 0;
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}
.jhb-angebote .faq details:hover,
.jhb-angebote .faq details[open]{
  box-shadow:var(--shadow-2);
  transform:translateY(-2px);
  border-color:color-mix(in srgb, var(--brand) 40%, #e2e8f0 60%);
}
.jhb-angebote .faq summary{
  list-style:none;
  cursor:pointer;
  padding:18px 56px 18px 20px;
  position:relative;
  font-weight:900;
  color:var(--ink);
}
.jhb-angebote .faq summary::-webkit-details-marker{display:none}
.jhb-angebote .faq summary::after{
  content:"";
  position:absolute;
  right:18px;
  top:50%;
  width:22px;
  height:22px;
  transform:translateY(-50%) rotate(0deg);
  mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="black" d="M12 15.5L5 8.5l1.4-1.4L12 12.7l5.6-5.6L19 8.5z"/></svg>') no-repeat center / contain;
  background:var(--brand);
  transition:transform .2s ease;
}
.jhb-angebote .faq details[open] summary::after{
  transform:translateY(-50%) rotate(180deg);
}
.jhb-angebote .faq .faq__a{
  padding:0 20px 20px 20px;
  color:#334155;
  line-height:1.65;
}

/* Section spacing fine tune */
.jhb-angebote .section + .section{padding-top:64px}
.jhb-angebote .gradient-bridge .lead{margin-bottom:40px}
.jhb-angebote .faq{
  background:linear-gradient(#fffdfb,#f6f1eb);
}

/* Hero Icon SVGs (echte Dateien) */
.jhb-angebote .hcard__icon svg{
  width:40px;
  height:40px;
  margin:0 auto var(--space-2);
  display:block;
  transition:transform .4s ease, filter .4s ease, opacity .4s ease;
  animation:icon-float 4s ease-in-out infinite;
}
@keyframes icon-float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-4px);}
}
.jhb-angebote .hcard:hover .hcard__icon svg{
  transform:translateY(-6px) scale(1.05);
  filter:drop-shadow(0 8px 18px rgba(15,23,42,.22));
}

/* Animierte Trenner – aktuell ohne Animation, aber sauber definiert */
.jhb-angebote .lead-divider{
  display:inline-block;
  min-width:1.5em;
  text-align:center;
  font-weight:900;
  letter-spacing:.18em;
  color:var(--brand);
  transform-origin:center;
}
.jhb-angebote .lead-tail{
  white-space:normal;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jhb-angebote .hcard__icon svg,
  .jhb-angebote .lead-divider{
    transition:none;
    animation:none;
  }
}

/* Mobile-Trenner vor "Stationäre Leistungen" + leichte Tönung für stationäre Karten */
@media (max-width:768px){
  .jhb-angebote h2#stationaer{
    position:relative;
    margin-top:60px;
    padding-top:30px;
  }

  .jhb-angebote h2#stationaer::before{
    content:"";
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:140px;
    height:4px;
    border-radius:999px;
    background:var(--brand);
    opacity:.7;
  }

  .jhb-angebote .grid--offers-stationaer .card{
    background:linear-gradient(180deg,#FFF7EE 0%,#FFFFFF 60%);
  }
}



@media (max-width:768px){
  .jhb-angebote .mt-section{
    margin-top:60px;
    padding-top:30px;
  }

  .jhb-angebote .mt-section::before{
    width:120px;
    height:2px;
    background:linear-gradient(90deg, rgba(233,98,11,0), rgba(233,98,11,.38), rgba(233,98,11,0));
  }
}
