/* ==========================================================================
   Lawyer directory: overview, city page, lawyer profile (boards T6, T7, T8).
   LAYOUT FILE. Loaded on page-anwaltsverzeichnis.php, single stadt and single
   anwalt only (inc/assets.php). Shared pieces (accordion, chips, kicker, CTA box)
   are in components.css and content.css.
   ========================================================================== */

/* ---------- Shared ---------- */

.ah-sectiontitle {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -1px;
}

.ah-dsection {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.ah-dhead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ah-dhead--row {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.ah-dhead__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ah-dhead--row > .ah-arrowlink {
  flex-shrink: 0;
  padding-bottom: 8px;
}

.ah-dhead__lead {
  max-width: 780px;
  color: var(--ah-grey);
  font-size: 18px;
  line-height: 1.65;
}

button.ah-arrowlink {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.ah-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ah-grey);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ah-eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--ah-orange);
}

.ah-eyebrow--plain {
  color: var(--ah-orange-text);
}

.ah-eyebrow--plain::before {
  display: none;
}

.ah-avatar {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ah-image-bg);
}

.ah-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ah-orange-text);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ah-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-tags li {
  padding: 5px 12px;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-beige);
  color: var(--ah-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.ah-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 700;
}

.ah-free svg {
  width: 15px;
  height: 15px;
}

/* ---------- Hero (T6, T7) ---------- */

.ah-dhero {
  background: var(--ah-beige);
}

.ah-dhero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 40px;
  padding-bottom: 72px;
}

.ah-dhero h1 {
  max-width: 1000px;
  margin-top: 22px;
  font-size: var(--ah-h1);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.ah-dhero__intro {
  max-width: 820px;
  color: var(--ah-grey);
  font-size: 19px;
  line-height: 1.7;
}

.ah-dhero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ah-grey);
  font-size: 15px;
  font-weight: 700;
}

.ah-dhero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ah-dhero__trust svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--ah-orange-text);
}

.ah-dhero__trust--facts {
  margin-top: 14px;
  color: var(--ah-text);
  font-weight: 500;
}

.ah-dhero__trust--facts b {
  font-weight: 800;
}

/* Search card */
.ah-dsearch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr) auto;
  align-items: end;
  gap: 16px;
  width: 100%;
  max-width: 1036px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-white);
  box-shadow: var(--ah-shadow-raised);
}

.ah-dsearch__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ah-dsearch label {
  font-size: 14px;
  font-weight: 800;
}

.ah-dsearch input,
.ah-dsearch select {
  width: 100%;
  height: var(--ah-btn-m);
  padding: 0 16px;
  border: 2px solid var(--ah-input-border);
  border-radius: var(--ah-radius-input);
  background: var(--ah-white);
  color: var(--ah-text);
  font-family: var(--ah-font);
  font-size: 16px;
  font-weight: 600;
}

.ah-dsearch input::placeholder {
  color: var(--ah-grey);
  font-weight: 500;
}

.ah-dsearch input:focus,
.ah-dsearch select:focus {
  border-color: var(--ah-orange);
  outline: 0;
}

.ah-select {
  position: relative;
  display: block;
}

.ah-select select {
  padding-right: 44px;
  appearance: none;
  cursor: pointer;
}

.ah-select svg {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}

.ah-dsearch .ah-btn {
  height: var(--ah-btn-l);
  margin-bottom: -2px;
  font-size: 17px;
}

.ah-dsearch__hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ah-grey);
  font-size: 14px;
}

/* ---------- T6: cities ---------- */

.ah-dcities__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 48px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--ah-line);
  list-style: none;
}

.ah-dcities__grid li {
  border-top: 1px solid var(--ah-line);
}

.ah-dcities__grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  color: var(--ah-text);
  text-decoration: none;
}

.ah-dcities__grid a > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ah-dcities__grid b {
  font-size: 20px;
  font-weight: 800;
}

.ah-dcities__grid small {
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-dcities__grid svg {
  flex-shrink: 0;
  color: var(--ah-orange-text);
}

.ah-dcities__grid a:hover b {
  color: var(--ah-orange-text);
}

.ah-dcities__az {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-dcities__az a {
  color: var(--ah-text);
  font-weight: 700;
  text-decoration: none;
}

.ah-dcities__az a:hover {
  color: var(--ah-orange-text);
}

.ah-dcities__note {
  color: var(--ah-grey);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- T6: partner cards ---------- */

.ah-dpartners__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ah-pcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
  background: var(--ah-white);
  box-shadow: var(--ah-shadow-card);
}

.ah-pcard__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ah-pcard__avatar {
  width: 88px;
  height: 88px;
  font-size: 26px;
}

.ah-pcard__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ah-pcard__name {
  font-size: 22px;
  line-height: 1.25;
}

.ah-pcard__firm {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-pcard__place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-pcard__text {
  color: var(--ah-grey);
  font-size: 15px;
  line-height: 1.7;
}

.ah-pcard__more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 16px;
}

/* ---------- T6: steps ---------- */

.ah-dsteps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-dsteps__list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--ah-line);
}

.ah-dsteps__list li > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ah-dsteps__num {
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 800;
}

.ah-dsteps__list h3 {
  font-size: 21px;
  line-height: 1.3;
}

.ah-dsteps__list p {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- T6: CTA band ---------- */

.ah-dcta-wrap {
  padding-bottom: var(--ah-section-gap);
}

.ah-dcta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: 52px 56px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-peach);
}

.ah-dcta__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.ah-dcta__title {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.ah-dcta__text p {
  color: var(--ah-grey);
  font-size: 18px;
  line-height: 1.7;
}

.ah-dcta__buttons {
  display: flex;
  gap: 14px;
}

.ah-dcta-wrap--box {
  padding-top: var(--ah-section-gap);
}

.ah-dcta-wrap--box .ah-cta {
  margin: 0;
}

/* ---------- FAQ split (components: accordion) ---------- */

.ah-faq__inner {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.ah-faq__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.ah-faq__intro .ah-sectiontitle {
  font-size: 34px;
  letter-spacing: -0.8px;
}

.ah-faq__text {
  color: var(--ah-grey);
  font-size: 17px;
  line-height: 1.65;
}

.ah-dnote {
  padding-bottom: var(--ah-section-gap);
}

.ah-dnote p {
  max-width: 920px;
  color: var(--ah-grey);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- T7: firm list ---------- */

.ah-dlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}

.ah-dlist__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.ah-dlist__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.ah-dlist__title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ah-dlist__how {
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.ah-dlist__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ah-dlist__filters .ah-chip {
  height: 44px;
  border: 2px solid var(--ah-line);
  color: var(--ah-text);
  font-family: var(--ah-font);
  font-size: 16px;
  cursor: pointer;
}

.ah-dlist__filters .ah-chip:hover {
  border-color: var(--ah-input-border);
}

.ah-dlist__filters .ah-chip.is-active {
  border-color: var(--ah-orange);
  color: var(--ah-orange-text);
}

.ah-dlist__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ah-lcard {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
  background: var(--ah-white);
  box-shadow: var(--ah-shadow-card);
}

.ah-lcard__avatar {
  width: 96px;
  height: 96px;
  font-size: 28px;
}

.ah-lcard__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.ah-lcard__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ah-lcard__name {
  font-size: 22px;
  line-height: 1.3;
}

.ah-lcard__name a {
  color: var(--ah-text);
  text-decoration: none;
}

.ah-lcard__name a:hover {
  color: var(--ah-orange-text);
}

.ah-lcard__firm {
  color: var(--ah-grey);
  font-size: 16px;
}

.ah-lcard__badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-peach);
  color: var(--ah-orange-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ah-lcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-lcard__place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ah-lcard__topics {
  display: none;
}

.ah-lcard__text {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.75;
}

.ah-lcard__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ah-line);
}

.ah-lcard__chev {
  display: none;
}

.ah-dlist__all {
  align-self: flex-start;
}

.ah-dlist__empty {
  color: var(--ah-grey);
  font-size: 16px;
}

.ah-dlist__note {
  color: var(--ah-grey);
  font-size: 14px;
  line-height: 1.75;
  /* The jump from "Wie die Reihenfolge entsteht" lands with the note in the lower
     half of the window, the last profiles still in view (Timo, 10 Nov 2026). */
  scroll-margin-top: 55vh;
}

.ah-dlist__aside {
  position: sticky;
  top: calc(var(--ah-header-height) + 24px);
}

.admin-bar .ah-dlist__aside {
  top: calc(var(--ah-header-height) + 56px);
}

.ah-dside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 24px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-peach);
}

.ah-dside__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.ah-dside__text {
  color: var(--ah-grey);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- T7: local section ---------- */

.ah-dlocal__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: start;
}

.ah-dlocal__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ah-dlocal__title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ah-dlocal__text p:not(.ah-eyebrow) {
  font-size: 17px;
  line-height: 1.85;
}

.ah-dlocal__facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ah-dfact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 20px 18px;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  background: var(--ah-white);
}

.ah-dfact__label {
  color: var(--ah-grey);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ah-dfact__value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.ah-dfact__sub {
  color: var(--ah-grey);
  font-size: 14px;
}

/* ---------- T7: figures ---------- */

.ah-dfigures__title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ah-dgroup {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--ah-line);
}

.ah-dsection > .ah-dhead + .ah-dgroup {
  margin-top: -6px;
}

.ah-dgroup__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.ah-dgroup__head h3 {
  font-size: 20px;
}

.ah-dgroup__source {
  color: var(--ah-grey);
  font-size: 13px;
}

.ah-dgroup__tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ah-dtile {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  background: var(--ah-white);
}

.ah-dtile__label {
  color: var(--ah-grey);
  font-size: 15px;
  line-height: 1.35;
}

.ah-dtile__value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.ah-dtile__note {
  color: var(--ah-grey);
  font-size: 13px;
}

/* Scale 0,5 to 1,25 */
.ah-dscale {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-beige);
}

.ah-dscale__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 22px;
}

.ah-dscale__head h3 {
  font-size: 20px;
}

.ah-dscale__head p {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-dscale__bar {
  position: relative;
  height: 14px;
  border-radius: var(--ah-radius-pill);
  background: linear-gradient(90deg, var(--ah-grade-4), var(--ah-grade-3) 35%, var(--ah-pro-bg) 55%, var(--ah-grade-2) 78%, var(--ah-grade-1));
}

.ah-dscale__dot {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 22px;
  height: 22px;
  border: 3px solid var(--ah-orange-text);
  border-radius: 50%;
  background: var(--ah-white);
  transform: translate(-50%, -50%);
}

.ah-dscale__flag {
  position: absolute;
  bottom: calc(100% + 14px);
  left: var(--pos);
  padding: 4px 12px;
  border-radius: 10px;
  background: var(--ah-orange-text);
  color: var(--ah-white);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ah-dscale__ticks {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.ah-dscale__ticks li {
  display: flex;
  flex-direction: column;
  width: 0;
  white-space: nowrap;
}

.ah-dscale__ticks li:nth-child(2),
.ah-dscale__ticks li:nth-child(3) {
  align-items: center;
}

.ah-dscale__ticks li:last-child {
  align-items: flex-end;
}

.ah-dscale__ticks span {
  color: var(--ah-grey);
}

.ah-dscale__text {
  color: var(--ah-grey);
  font-size: 14px;
  line-height: 1.7;
}

/* Example calculation */
.ah-dexample {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--ah-line);
}

.ah-dexample__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ah-dexample__text h3 {
  font-size: 21px;
}

.ah-dexample__text p {
  font-size: 17px;
  line-height: 1.85;
}

.ah-dexample__box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
  background: var(--ah-white);
  box-shadow: var(--ah-shadow-card);
}

.ah-dexample__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ah-line);
  font-size: 15px;
}

.ah-dexample__rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ah-dexample__rows dt {
  color: var(--ah-grey);
}

.ah-dexample__rows dd {
  margin: 0;
  font-weight: 800;
}

.ah-dexample__value {
  margin-top: 4px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.ah-dexample__range {
  margin-top: -10px;
  color: var(--ah-grey);
  font-size: 14px;
}

/* ---------- T7: court ---------- */

.ah-dcourt {
  border-top: 1px solid var(--ah-line);
}

.ah-dcourt__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.ah-dcourt__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.ah-dcourt__text {
  max-width: 420px;
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.7;
}

.ah-dcourt__intro .ah-sectiontitle {
  font-size: 32px;
  letter-spacing: -0.6px;
}

.ah-dcourt__table {
  margin: 0;
  padding: 14px 32px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-beige);
}

.ah-dcourt__table div {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ah-line);
}

.ah-dcourt__table div:last-child {
  border-bottom: 0;
}

.ah-dcourt__table dt {
  flex-shrink: 0;
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-dcourt__table dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  text-align: right;
}

.ah-dcourt__table dd.is-strong {
  font-weight: 800;
}

.ah-dseo {
  padding-top: var(--ah-section-gap);
}

/* B2B strip */
.ah-db2b {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: var(--ah-section-gap);
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid var(--ah-line);
  border-bottom: 1px solid var(--ah-line);
  color: var(--ah-grey);
  font-size: 16px;
}

/* ---------- T8: profile ---------- */

.ah-phero {
  background: var(--ah-beige);
}

.ah-phero__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 48px;
}

.ah-phero__main {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.ah-phero__avatar {
  width: 200px;
  height: 200px;
  font-size: 54px;
}

.ah-phero__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
  min-width: 0;
}

.ah-phero__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.ah-phero__name h1 {
  font-size: var(--ah-h1);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.ah-phero__intro {
  max-width: 900px;
  color: var(--ah-grey);
  font-size: 20px;
  line-height: 1.6;
}

.ah-pfacts {
  border-top: 1px solid var(--ah-line);
}

.ah-pfacts__list {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin: 0 auto;
  padding-top: 22px;
  padding-bottom: 22px;
  list-style: none;
  color: var(--ah-grey);
  font-size: 17px;
}

.ah-pfacts__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 2px 24px;
  border-left: 1px solid var(--ah-line);
}

.ah-pfacts__list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.ah-pfacts__label {
  font-size: 14px;
  font-weight: 600;
}

.ah-pfacts__list b {
  color: var(--ah-text);
  font-weight: 800;
}

.ah-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 72px;
  align-items: start;
}

.ah-profile__main {
  display: flex;
  flex-direction: column;
  gap: 52px;
  min-width: 0;
}

.ah-profile__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ah-profile__block > * {
  max-width: 100%;
}

.ah-profile__title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ah-profile__quote {
  margin: 0;
  padding: 30px;
  border-radius: var(--ah-radius-card);
  background: var(--ah-peach);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

.ah-profile__about {
  font-size: 17px;
  line-height: 1.85;
}

.ah-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 40px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-services li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  line-height: 1.4;
}

.ah-services b {
  font-weight: 700;
}

.ah-services__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ah-peach);
  color: var(--ah-orange-text);
}

.ah-services__icon svg {
  width: 13px;
  height: 13px;
}

.ah-timeline {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0;
  padding: 0 0 0 42px;
  list-style: none;
}

.ah-timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 17px;
  line-height: 1.45;
}

.ah-timeline li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -36px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ah-bar);
  border-radius: 50%;
  background: var(--ah-white);
}

.ah-timeline li:first-child::before {
  border-color: var(--ah-orange);
  background: var(--ah-orange);
}

.ah-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: -30px;
  left: -31px;
  width: 2px;
  background: var(--ah-bar);
}

.ah-timeline b {
  font-weight: 700;
}

.ah-timeline span:not(.ah-timeline__label) {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-timeline__label {
  color: var(--ah-orange-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ah-profile .ah-postlist {
  width: 100%;
  margin: 0;
}

.ah-profile .ah-postrow {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  padding: 16px 0;
}

.ah-profile .ah-postrow__image {
  height: 76px;
}

.ah-profile .ah-postrow__title {
  font-size: 18px;
}

.ah-profile .ah-postrow small {
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-profile .ah-postrow > svg {
  color: var(--ah-orange-text);
}

.ah-profile__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ah-contactcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 26px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-box);
  background: var(--ah-white);
  box-shadow: var(--ah-shadow-raised);
  scroll-margin-top: calc(var(--ah-header-height) + 20px);
}

.ah-contactcard__title,
.ah-firmcard__title {
  font-size: 22px;
}

.ah-contactcard__sub {
  color: var(--ah-grey);
  font-size: 15px;
  line-height: 1.6;
}

.ah-contactcard__quick {
  margin: 12px 0 4px;
}

.ah-contactcard__quick div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--ah-line);
  font-size: 15px;
}

.ah-contactcard__quick dt {
  color: var(--ah-grey);
}

.ah-contactcard__quick dd {
  margin: 0;
  font-weight: 800;
}

.ah-contactcard__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ah-contactcard__form label,
.ah-firmcard dt {
  color: var(--ah-grey);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ah-contactcard__form label {
  margin-top: 10px;
  color: var(--ah-text);
}

.ah-contactcard__form input,
.ah-contactcard__form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--ah-input-border);
  border-radius: var(--ah-radius-input);
  background: var(--ah-white);
  color: var(--ah-text);
  font-family: var(--ah-font);
  font-size: 16px;
}

.ah-contactcard__form textarea {
  min-height: 92px;
  resize: vertical;
}

.ah-contactcard__form input:focus,
.ah-contactcard__form textarea:focus {
  border-color: var(--ah-orange);
  outline: 0;
}

.ah-contactcard__form .ah-btn {
  margin-top: 14px;
}

.ah-hp {
  position: absolute;
  left: -9999px;
}

.ah-contactcard__legal {
  margin-top: 10px;
  color: var(--ah-grey);
  font-size: 12px;
  line-height: 1.6;
}

.ah-contactcard__legal a {
  color: var(--ah-orange-text);
  font-weight: 700;
}

.ah-contactcard__msg {
  padding: 12px 14px;
  border-radius: var(--ah-radius-input);
  font-size: 15px;
}

.ah-contactcard__msg.is-ok {
  background: var(--ah-pro-bg);
  color: var(--ah-pro-dark);
}

.ah-contactcard__msg.is-error {
  background: var(--ah-con-bg);
  color: var(--ah-con);
}

.ah-contactcard__direct {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.ah-firmcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-beige);
}

.ah-firmcard__title {
  font-size: 18px;
}

.ah-firmcard dl {
  margin: 0;
}

.ah-firmcard dl div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ah-line);
}

.ah-firmcard dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.ah-firmcard dd a:not(.ah-link) {
  color: var(--ah-text);
  text-decoration: none;
}

.ah-firmcard__more p {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 800;
}

.ah-firmcard__more ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1180px) and (min-width: 901px) {
  .ah-dcities__grid,
  .ah-dcities__az {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ah-dpartners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-dgroup__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-dlist,
  .ah-profile {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .ah-dlocal__inner,
  .ah-dexample,
  .ah-faq__inner,
  .ah-dcta {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ==========================================================================
   Mobile (boards T6, T7, T8 mobile, 390 px)
   ========================================================================== */

@media (max-width: 900px) {
  .ah-sectiontitle,
  .ah-faq__intro .ah-sectiontitle,
  .ah-dcourt__intro .ah-sectiontitle {
    font-size: var(--ah-h2-mobile);
    line-height: 1.2;
    letter-spacing: -0.5px;
  }

  .ah-dsection {
    gap: 20px;
  }

  .ah-dhead,
  .ah-dhead__text {
    gap: 6px;
  }

  .ah-dhead__lead {
    font-size: 16px;
  }

  /* Hero */
  .ah-dhero__inner {
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 32px;
  }

  .ah-dhero h1 {
    margin-top: 6px;
    font-size: var(--ah-h1-mobile);
    line-height: 1.15;
    letter-spacing: -0.8px;
  }

  .ah-dhero__intro {
    font-size: 16px;
    line-height: 1.6;
  }

  .ah-dhero__trust {
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
  }

  .ah-dhero__trust--facts {
    margin-top: 2px;
  }

  .ah-dsearch {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 6px;
    padding: 16px 14px;
    border-radius: var(--ah-radius-card);
  }

  .ah-dsearch .ah-btn {
    height: var(--ah-btn-m);
    margin: 0;
    font-size: 16px;
  }

  /* Cities: one column, eight cities */
  .ah-dcities__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-dcities__extra {
    display: none;
  }

  .ah-dcities__grid a {
    padding: 15px 0;
  }

  .ah-dcities__grid b {
    font-size: 17px;
  }

  .ah-dcities__grid small {
    font-size: 13px;
  }

  .ah-dcities__az {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
  }

  .ah-dcities__note {
    font-size: 15px;
  }

  /* Partners */
  .ah-dpartners__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ah-pcard {
    gap: 14px;
    padding: 20px 18px;
  }

  .ah-pcard__avatar {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .ah-pcard__name {
    font-size: 18px;
  }

  .ah-pcard__text {
    font-size: 15px;
  }

  .ah-pcard__more {
    padding-top: 0;
  }

  /* Steps: numbered rows */
  .ah-dsteps__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ah-dsteps__list li {
    flex-direction: row;
    gap: 18px;
    padding: 20px 0;
  }

  .ah-dsteps__list li > div {
    gap: 4px;
  }

  .ah-dsteps__num {
    width: 10px;
    font-size: 14px;
  }

  .ah-dsteps__list h3 {
    font-size: 17px;
  }

  .ah-dsteps__list p {
    font-size: 15px;
  }

  /* CTA band: full width peach, last block before the footer */
  .ah-dcta-wrap {
    padding: 0;
  }

  .ah-dcta {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 36px 20px;
    border-radius: 0;
  }

  .ah-dcta__title {
    font-size: var(--ah-h2-mobile);
    letter-spacing: -0.4px;
  }

  .ah-dcta__text p {
    font-size: 16px;
  }

  .ah-dcta__buttons {
    flex-direction: column;
  }

  .ah-dcta__buttons .ah-btn {
    width: 100%;
  }

  .ah-dcta-wrap--box {
    padding: 0;
  }

  .ah-dcta-wrap--box .ah-cta {
    border-radius: 0;
  }

  /* FAQ */
  .ah-faq__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .ah-faq__intro .ah-kicker,
  .ah-faq__text {
    display: none;
  }

  .ah-dnote {
    padding-bottom: var(--ah-section-gap-mobile);
  }

  .ah-dnote p {
    font-size: 13px;
  }

  /* City list: compact rows, no filters, no aside */
  .ah-dlist {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ah-dlist__main {
    gap: 0;
  }

  .ah-dlist__title {
    padding-bottom: 14px;
    font-size: 21px;
    letter-spacing: -0.2px;
  }

  .ah-dlist__cards {
    gap: 0;
    border-top: 1px solid var(--ah-line);
  }

  .ah-lcard {
    position: relative;
    grid-template-columns: 52px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--ah-line);
    border-radius: 0;
    box-shadow: none;
  }

  .ah-lcard__avatar {
    width: 52px;
    height: 52px;
    font-size: 17px;
  }

  .ah-lcard__body {
    gap: 1px;
  }

  .ah-lcard__name {
    font-size: 16px;
  }

  .ah-lcard__name a::after {
    content: "";
    position: absolute;
    inset: 0;
  }

  .ah-lcard__firm {
    font-size: 13px;
  }

  .ah-lcard .ah-lcard__badge,
  .ah-lcard__meta,
  .ah-lcard__tags,
  .ah-lcard__text,
  .ah-lcard__foot .ah-free {
    display: none;
  }

  .ah-lcard__topics {
    display: block;
    color: var(--ah-grey);
    font-size: 12px;
  }

  .ah-lcard__foot {
    padding: 0;
    border: 0;
  }

  .ah-lcard__foot > span {
    display: none;
  }

  .ah-lcard__btn.ah-btn {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 800;
  }

  .ah-lcard__chev {
    display: inline-flex;
    color: var(--ah-orange-text);
  }

  .ah-dlist__all {
    width: 100%;
    margin-top: 16px;
  }

  .ah-dlist__how {
    margin-top: 16px;
    font-size: 14px;
    text-decoration: none;
  }

  .ah-dlist__note {
    margin-top: 14px;
    font-size: 13px;
  }

  /* Local */
  .ah-dlocal__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .ah-dlocal__text {
    gap: 12px;
  }

  .ah-dlocal__title {
    font-size: 21px;
  }

  .ah-dlocal__text p:not(.ah-eyebrow) {
    font-size: 15px;
    line-height: 1.75;
  }

  .ah-dlocal__facts {
    gap: 10px;
  }

  .ah-dfact {
    padding: 16px;
  }

  .ah-dfact--last {
    display: none;
  }

  .ah-dfact__value {
    font-size: 19px;
  }

  .ah-dfact__sub {
    font-size: 12px;
  }

  /* Figures */
  .ah-dfigures__title {
    font-size: 21px;
  }

  .ah-dgroup {
    gap: 12px;
    padding-top: 22px;
  }

  .ah-dgroup__head h3 {
    font-size: 16px;
  }

  .ah-dgroup__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ah-dtile {
    padding: 16px 14px;
  }

  .ah-dtile__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }

  .ah-dtile__value {
    font-size: 18px;
  }

  .ah-dgroup__source {
    font-size: 12px;
  }

  .ah-dscale {
    gap: 12px;
    padding: 20px 16px;
  }

  .ah-dscale__head {
    margin-bottom: 4px;
  }

  .ah-dscale__head h3 {
    font-size: 16px;
  }

  .ah-dscale__ticks {
    font-size: 11px;
  }

  .ah-dscale__ticks b {
    font-weight: 500;
  }

  .ah-dscale__text {
    font-size: 13px;
  }

  .ah-dexample {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 22px;
  }

  .ah-dexample__text h3 {
    font-size: 17px;
  }

  .ah-dexample__text p {
    font-size: 15px;
    line-height: 1.75;
  }

  .ah-dexample__box {
    padding: 20px 16px;
  }

  .ah-dexample__value {
    font-size: 26px;
  }

  /* Court: beige band, stacked rows */
  .ah-dcourt {
    border-top: 0;
    background: var(--ah-beige);
  }

  .ah-dcourt__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ah-dcourt__table {
    padding: 0;
    background: none;
  }

  .ah-dcourt__table div {
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
  }

  .ah-dcourt__table div:first-child {
    border-top: 1px solid var(--ah-line);
  }

  .ah-dcourt__table dt {
    font-size: 12px;
  }

  .ah-dcourt__table dd {
    font-size: 15px;
    text-align: left;
  }

  .ah-db2b {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: var(--ah-section-gap-mobile);
    margin-bottom: var(--ah-section-gap-mobile);
    padding: 20px 0;
    font-size: 14px;
  }

  /* Profile */
  .ah-phero__inner {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .ah-phero__main {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px 16px;
  }

  .ah-phero__avatar {
    width: 76px;
    height: 76px;
    font-size: 22px;
  }

  .ah-phero__text {
    display: contents;
  }

  .ah-phero__name {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    align-self: center;
  }

  .ah-phero__name h1 {
    font-size: 26px;
    letter-spacing: -0.6px;
  }

  .ah-phero__intro,
  .ah-phero__topics {
    grid-column: 1 / -1;
  }

  .ah-phero__intro {
    font-size: 15px;
    line-height: 1.7;
  }

  .ah-phero__topics span {
    padding: 6px 12px;
    font-size: 13px;
  }

  .ah-pfacts__list {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 14px;
  }

  .ah-pfacts__label {
    font-size: 12px;
  }

  .ah-pfacts__list li,
  .ah-pfacts__list li:first-child {
    padding: 0;
    border-left: 0;
  }

  .ah-profile {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .ah-profile__main {
    gap: 36px;
  }

  .ah-profile__aside {
    display: contents;
  }

  .ah-firmcard {
    order: 1;
    padding: 0;
    background: none;
  }

  .ah-contactcard {
    order: 2;
    padding: 22px 18px;
  }

  .ah-profile__title {
    font-size: 20px;
  }

  .ah-profile__block {
    gap: 14px;
  }

  .ah-profile__quote {
    padding: 20px 18px;
    font-size: 16px;
  }

  .ah-profile__about {
    font-size: 15px;
    line-height: 1.75;
  }

  .ah-services {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ah-services li {
    font-size: 15px;
  }

  .ah-timeline {
    gap: 18px;
    padding-left: 30px;
  }

  .ah-timeline li {
    font-size: 15px;
  }

  .ah-timeline li::before {
    left: -28px;
  }

  .ah-timeline li:not(:last-child)::after {
    left: -23px;
    bottom: -22px;
  }

  .ah-profile .ah-postrow {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .ah-profile .ah-postrow > svg {
    display: none;
  }

  .ah-profile .ah-postrow__image {
    height: 60px;
  }

  .ah-profile .ah-postrow__title {
    font-size: 15px;
  }

  .ah-profile .ah-postrow small {
    font-size: 12px;
  }

  .ah-firmcard__title {
    font-size: 20px;
  }
}
