/**
 * Hilfe zur Erziehung Berlin
 * Seitenspezifische Darstellung der HzE-Orientierungsseite.
 *
 * Architektur:
 * - das gemeinsame Berlin-System liefert Typografie, Sections und Basis-Komponenten
 * - diese Datei enthält ausschließlich HzE-spezifische Modifier
 * - keine globalen Hotfixes; Modifier bleiben auf diese Seite begrenzt
 */

/* =========================================================
   Hero
   ========================================================= */
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-hero h1 .jba-h1-line--hze-topic,
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-hero h1 .jba-h1-line--hze-city {
  display: inline;
  white-space: nowrap;
}

/* =========================================================
   Einordnung: offene 2x2-Editorial-Matrix
   ========================================================= */
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-section--hze-editorial {
  padding-top: 64px;
  padding-bottom: 68px;
  background:
    radial-gradient(680px 260px at 10% 8%, rgba(229, 249, 242, .24), transparent 74%),
    radial-gradient(720px 280px at 90% 10%, rgba(234, 244, 247, .42), transparent 76%),
    #ffffff;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-section--hze-editorial .jba-section-head {
  margin-bottom: 30px;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card-grid--hze-editorial {
  counter-reset: jba-hze-editorial;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 980px;
  margin-inline: auto;
  border-top: 1px solid rgba(var(--jba-blue-rgb), .13);
  border-bottom: 1px solid rgba(var(--jba-blue-rgb), .13);
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial {
  counter-increment: jba-hze-editorial;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: start;
  align-items: start;
  column-gap: 18px;
  row-gap: 0;
  min-height: 0;
  padding: 30px 32px 28px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transition: none;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial:nth-child(even) {
  border-left: 1px solid rgba(var(--jba-blue-rgb), .13);
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial:nth-child(n+3) {
  border-top: 1px solid rgba(var(--jba-blue-rgb), .13);
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial::before {
  content: counter(jba-hze-editorial, decimal-leading-zero);
  position: static;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--jba-blue-rgb), .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .84);
  color: var(--jba-blue-ink);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  opacity: 1;
  box-shadow: 0 8px 20px rgba(18, 49, 62, .05), inset 0 1px 0 rgba(255, 255, 255, .92);
  transition: none;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial::after {
  display: none;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial h3,
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial p,
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial ul {
  grid-column: 2;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial h3 {
  grid-row: 1;
  align-self: center;
  font-size:var(--jhb-type-h3);
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial p {
  grid-row: 2;
  margin-top: .72rem;
  line-height: 1.66;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial ul {
  grid-row: 3;
  margin-top: 15px;
}

/* =========================================================
   Hilfeplan: gleiche Sprache, dezenter Hover
   ========================================================= */
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #hilfeplan .jba-editorial-split__item,
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #hilfeplan .jba-editorial-split__item > span {
  transition: background .22s ease, border-color .2s ease, color .2s ease, box-shadow .22s ease;
}

/* =========================================================
   Berlin: Bezirkszellen als echte interne Links
   ========================================================= */
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district--link {
  position: relative;
  padding-right: 38px;
  transition: background .2s ease, box-shadow .2s ease;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district-link:focus-visible {
  outline: 2px solid rgba(var(--jba-blue-rgb), .32);
  outline-offset: -2px;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district-arrow {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--jba-blue-rgb), .07);
  color: var(--jba-blue-dark);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}


/* HzE: Bezirksorientierung kompakt und ohne leere rechte Spalte. */
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-section-head {
  max-width: 820px;
  margin-inline: auto;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-berlin-focus-panel {
  display: block;
  width: min(920px, 100%);
  padding: 0;
}

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-berlin-focus-panel::before { display: none; }
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-berlin-focus-panel__main { padding: 0; }
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-berlin-focus-panel h3 {
  max-width: none;
  font-size:var(--jhb-type-h3);
}
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-berlin-focus-panel__main > p:not(.jba-berlin-focus-panel__eyebrow) { max-width: 720px; }
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-berlin-focus-panel__districts { margin-top: 24px; }

/* =========================================================
   Angebotsnetzwerk: vorhandene Link-Komponente nur thematisch akzentuieren
   ========================================================= */
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #abgrenzung .jba-link-card {
  border-color: rgba(var(--jba-blue-rgb), .11);
  background:
    radial-gradient(190px 100px at 96% 8%, rgba(var(--jba-blue-rgb), .055), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}

/* =========================================================
   Pointer-Hover nur dort, wo er visuell Sinn ergibt
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #hilfeplan .jba-editorial-split__item:hover,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #hilfeplan .jba-editorial-split__item:focus-within {
    background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(var(--jba-green-rgb), .05) 100%);
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #hilfeplan .jba-editorial-split__item:hover > span,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #hilfeplan .jba-editorial-split__item:focus-within > span {
    border-color: rgba(var(--jba-blue-rgb), .28);
    background: rgba(var(--jba-blue-rgb), .09);
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district--link:hover,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district--link:focus-within {
    background: linear-gradient(90deg, rgba(var(--jba-blue-rgb), .035), rgba(var(--jba-green-rgb), .045));
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district-link:hover .jba-berlin-focus-panel__district-arrow,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district-link:focus-visible .jba-berlin-focus-panel__district-arrow {
    background: var(--jba-blue-dark);
    color: #ffffff;
    transform: translate(2px, -50%);
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #vertrauen .jba-card--hze-trust:hover,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #vertrauen .jba-card--hze-trust:focus-within {
    transform: translateY(-3px);
    border-color: rgba(var(--jba-blue-rgb), .19);
    background:
      radial-gradient(240px 120px at 50% 0%, rgba(234, 244, 247, .7), transparent 74%),
      linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
    box-shadow: 0 20px 42px rgba(18, 49, 62, .075), inset 0 1px 0 rgba(255, 255, 255, .96);
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #abgrenzung .jba-link-card:hover,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #abgrenzung .jba-link-card:focus-visible {
    border-color: rgba(var(--jba-blue-rgb), .2);
    background:
      radial-gradient(210px 110px at 96% 8%, rgba(var(--jba-blue-rgb), .09), transparent 72%),
      linear-gradient(180deg, #ffffff 0%, #f2f9f7 100%);
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 760px) {
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-berlin-focus-panel h3,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-berlin-focus-panel__main > p:not(.jba-berlin-focus-panel__eyebrow) {
    text-align: center;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #berlin .jba-berlin-focus-panel__eyebrow {
    margin-inline: auto;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card-grid--hze-editorial {
    grid-template-columns: 1fr;
    width: min(100%, 430px);
    max-width: 430px;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    justify-items: center;
    padding: 24px 12px 26px;
    border-left: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(var(--jba-blue-rgb), .12);
    text-align: center;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial:last-child {
    border-bottom: 0;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial::before {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial h3 {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial p {
    grid-column: 1;
    grid-row: 3;
    max-width: 31rem;
    text-align: center;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-card--hze-editorial ul {
    grid-column: 1;
    grid-row: 4;
    width: min(100%, 23rem);
    max-width: 23rem;
    text-align: left;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #vertrauen .jba-card-grid--hze-trust {
    grid-template-columns: 1fr;
    width: min(100%, 430px);
    gap: 12px;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #vertrauen .jba-card--hze-trust {
    min-height: 0;
    padding: 27px 20px 23px;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district--link {
    padding-right: 38px;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-berlin-focus-panel__district-arrow {
    right: 8px;
  }
}

@media (max-width: 560px) {
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-hero h1 {
    max-width: var(--jhb-heading-max-h1);
    font-size:var(--jhb-type-h1);
    line-height:var(--jhb-leading-h1);
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-hero h1 .jba-h1-line--hze-topic,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-hero h1 .jba-h1-line--hze-city {
    display: block;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-hero h1 {
    max-width: var(--jhb-heading-max-h1);
    font-size:var(--jhb-type-h1);
  }
}


/* =========================================================
   HzE Berlin – verdichtete Informationsarchitektur
   ========================================================= */
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts {
  max-width: 960px;
  gap: 0;
  border-top: 1px solid rgba(var(--jba-blue-rgb), .12);
  border-bottom: 1px solid rgba(var(--jba-blue-rgb), .12);
}
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts > .jba-fact {
  min-height: auto;
  padding: 15px 18px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts > .jba-fact + .jba-fact {
  border-left: 1px solid rgba(var(--jba-blue-rgb), .12);
}
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts > .jba-fact::before { display: none; }
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts strong { font-size: .62rem; }
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts .jba-fact__value { font-size: .94rem; }

.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #ablauf {
  padding-top: 64px;
  padding-bottom: 70px;
  background: linear-gradient(180deg, rgba(242, 248, 250, .72) 0%, rgba(248, 251, 251, .92) 100%);
}
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #abgrenzung .jba-link-navigator {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 980px);
  margin-inline: auto;
}
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #abgrenzung .jba-link-navigator__group { width: 100%; }
.jhb-berlin-angebot--hilfe-zur-erziehung-berlin #abgrenzung .jba-link-navigator__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts > .jba-fact {
    padding: 13px 10px 12px;
  }
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts > .jba-fact:nth-child(3) { border-left: 0; }
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-facts > .jba-fact:nth-child(n+3) {
    border-top: 1px solid rgba(var(--jba-blue-rgb), .12);
  }
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin #abgrenzung .jba-link-navigator__list {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Einordnung: statische Editorial-Matrix ohne Karten-Hover
   Die vier Informationsfelder sind keine Interaktionselemente.
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-section--hze-editorial .jba-card--hze-editorial:hover,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-section--hze-editorial .jba-card--hze-editorial:focus-within {
    transform: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-section--hze-editorial .jba-card--hze-editorial:hover::before,
  .jhb-berlin-angebot--hilfe-zur-erziehung-berlin .jba-section--hze-editorial .jba-card--hze-editorial:focus-within::before {
    opacity: 1;
    background: rgba(255, 255, 255, .84);
    transform: none;
  }
}
