/* ==========================================================================
   List and info pages (Prio B): guides /ratgeber/ and category archives (T2),
   category overview /kategorien/ (T1), CTA band. LAYOUT FILE.
   ========================================================================== */

/* ---------- Guide hero with filter chips (T2) ---------- */

.ah-ghero {
  border-bottom: 1px solid var(--ah-line);
  background: var(--ah-beige);
}

.ah-ghero__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 72px;
}

.ah-ghero__inner .ah-page-hero__intro {
  max-width: none;
}

.ah-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 18px;
}

/* Inactive filters grey without border, active white with 2 px orange border
   (handover rule "Active filter"). */
.ah-filter {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: var(--ah-radius-pill);
  color: var(--ah-grey);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ah-filter:hover {
  color: var(--ah-text);
}

.ah-filter.is-active {
  border-color: var(--ah-orange);
  background: var(--ah-white);
  color: var(--ah-orange-text);
}

/* ---------- Guide list ---------- */

.ah-guides {
  padding-top: var(--ah-section-gap);
}

.ah-guides__featured {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ah-line);
}

.ah-guides__featured + .ah-guides__grid {
  padding-top: var(--ah-section-gap);
}

.ah-guides__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
}

.ah-guides__empty {
  color: var(--ah-grey);
}

.ah-gcard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ah-text);
  text-decoration: none;
}

.ah-gcard__image {
  display: block;
  overflow: hidden;
  height: 210px;
  border-radius: 18px;
  background: var(--ah-image-bg);
}

.ah-gcard__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.ah-gcard:hover .ah-gcard__image img {
  transform: scale(1.03);
}

.ah-gcard__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ah-gcard__label {
  color: var(--ah-orange-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ah-gcard__title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

.ah-gcard:hover .ah-gcard__title {
  color: var(--ah-orange-text);
}

.ah-gcard__text {
  color: var(--ah-grey);
  font-size: 17px;
  line-height: 1.7;
}

.ah-gcard__meta {
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-gcard--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.ah-gcard--featured .ah-gcard__image {
  height: 380px;
  border-radius: 22px;
}

.ah-gcard--featured .ah-gcard__body {
  gap: 16px;
}

.ah-gcard--featured .ah-gcard__title {
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -0.8px;
}

/* Pagination as on the board: numbers in a row, "Weiter" in orange. */
.ah-guides .ah-pagination {
  gap: 10px;
  margin-top: 0;
  padding: var(--ah-section-gap) 0 0;
  font-size: 17px;
}

.ah-pagination .page-numbers.dots {
  min-width: 24px;
  padding: 0;
}

.ah-pagination .page-numbers.prev,
.ah-pagination .page-numbers.next {
  color: var(--ah-orange-text);
  font-weight: 800;
}

/* ---------- Category overview (T1) ---------- */

.ah-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 56px;
  padding-top: var(--ah-section-gap);
}

.ah-topic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--ah-line);
}

.ah-topic:nth-child(-n+3) {
  padding-top: 0;
}

.ah-topic:nth-last-child(-n+3):nth-child(3n+1),
.ah-topic:nth-last-child(-n+3):nth-child(3n+1) ~ .ah-topic {
  border-bottom: 0;
}

.ah-topic__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 6px;
}

.ah-topic__title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.ah-topic__title a {
  color: var(--ah-text);
  text-decoration: none;
}

.ah-topic__title a:hover {
  color: var(--ah-orange-text);
}

.ah-topic__meta {
  flex-shrink: 0;
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-topic__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-topic__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
}

.ah-topic__links a:hover {
  color: var(--ah-text);
}

.ah-topic__links svg {
  display: none;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--ah-orange-text);
}

.ah-topic__all {
  margin-top: 6px;
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.ah-topic__all:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- CTA band at the end of list pages ---------- */

.ah-ctaband-wrap {
  padding-top: var(--ah-section-gap);
  padding-bottom: 80px;
}

.ah-ctaband {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  max-width: 980px;
  padding: 32px 36px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-peach);
}

.ah-ctaband__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}

.ah-ctaband__title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.ah-ctaband__text p {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.65;
}

.ah-ctaband__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ah-ctaband--duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  max-width: none;
  padding: 52px 56px;
  border-radius: 32px;
}

.ah-ctaband--duo .ah-ctaband__text {
  gap: 10px;
  max-width: none;
}

.ah-ctaband--duo .ah-ctaband__title {
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.6px;
}

.ah-ctaband--duo .ah-ctaband__text p {
  font-size: 18px;
  line-height: 1.7;
}

.ah-ctaband--duo .ah-btn {
  width: 100%;
}

/* ---------- Tablet ---------- */

@media (max-width: 1180px) and (min-width: 901px) {
  .ah-guides__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }

  .ah-topic:nth-child(3) {
    padding-top: 28px;
  }

  .ah-topic {
    border-bottom: 1px solid var(--ah-line) !important;
  }

  .ah-gcard--featured .ah-gcard__title {
    font-size: 30px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .ah-ghero__inner {
    gap: 12px;
    padding-top: 28px;
  }

  .ah-ghero__title {
    font-size: var(--ah-h1-mobile);
  }

  .ah-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: calc(-1 * var(--ah-page-margin-mobile));
    padding: 12px var(--ah-page-margin-mobile) 16px 0;
    scrollbar-width: none;
  }

  .ah-filters::-webkit-scrollbar {
    display: none;
  }

  .ah-filter {
    flex-shrink: 0;
    min-height: 36px;
    padding: 0 14px;
    font-size: 15px;
  }

  .ah-guides {
    padding-top: 12px;
  }

  .ah-guides__featured,
  .ah-guides__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .ah-guides__featured {
    padding-bottom: 0;
  }

  .ah-guides__featured + .ah-guides__grid {
    padding-top: 0;
  }

  .ah-gcard,
  .ah-gcard--featured {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 12px 0 22px;
    border-bottom: 1px solid var(--ah-line);
  }

  .ah-gcard__image,
  .ah-gcard--featured .ah-gcard__image {
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    border-radius: 16px;
  }

  .ah-gcard__body,
  .ah-gcard--featured .ah-gcard__body {
    gap: 8px;
  }

  .ah-gcard__title,
  .ah-gcard--featured .ah-gcard__title {
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .ah-gcard__meta {
    font-size: 13px;
  }

  .ah-guides .ah-pagination {
    padding-top: 28px;
    font-size: 16px;
  }

  .ah-topics {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 20px;
  }

  .ah-topic,
  .ah-topic:nth-child(-n+3) {
    padding: 22px 0;
    border-bottom: 1px solid var(--ah-line) !important;
  }

  .ah-topic:first-child {
    padding-top: 4px;
  }

  .ah-topic__title {
    font-size: 21px;
  }

  .ah-topic__links a {
    padding: 10px 0;
    font-size: 16px;
  }

  .ah-topic__links svg {
    display: block;
  }

  .ah-ctaband-wrap {
    padding-top: 28px;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .ah-ctaband,
  .ah-ctaband--duo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 40px var(--ah-page-margin-mobile);
    border-radius: 0;
  }

  .ah-ctaband__title,
  .ah-ctaband--duo .ah-ctaband__title {
    font-size: 24px;
  }

  .ah-ctaband__text p,
  .ah-ctaband--duo .ah-ctaband__text p {
    font-size: 15px;
  }

  .ah-ctaband .ah-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Hero without filters (contact, about)
   ========================================================================== */

.ah-ghero--plain {
  border-bottom: 0;
}

.ah-ghero--plain .ah-ghero__inner {
  padding-bottom: 52px;
}

/* Contact page: same width as the band on the guide pages (Timo, 21 Oct 2026). */

/* ==========================================================================
   Legal texts and jobs (T4)
   ========================================================================== */

.ah-legal__hero {
  gap: 14px;
  padding-bottom: 32px;
}

.ah-legal__updated {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-legal {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-top: var(--ah-section-gap);
  padding-bottom: var(--ah-section-gap);
}

.ah-legal__aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (min-width: 901px) and (min-height: 700px) {
  .ah-legal__aside {
    position: sticky;
    top: 32px;
  }

  .admin-bar .ah-legal__aside {
    top: 64px;
  }
}

.ah-legal__aside .ah-toc--sidebar {
  box-shadow: var(--ah-shadow-card);
}

.ah-legal__box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-peach);
}

.ah-legal__box-title {
  font-size: 17px;
  font-weight: 800;
}

.ah-legal__box-text {
  color: var(--ah-grey);
  font-size: 15px;
  line-height: 1.6;
}

.ah-legal__box .ah-btn {
  margin-top: 6px;
}

.ah-content--legal {
  max-width: 760px;
}

.ah-content--legal h2 {
  scroll-margin-top: 32px;
}

/* Address block in legal texts: a group or columns block with class ah-address. */
.ah-content .ah-address {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin: 24px 0;
  padding: 26px 28px;
  border-radius: var(--ah-radius-card);
  background: var(--ah-beige);
  font-size: 16px;
  line-height: 1.65;
}

.ah-content .ah-address p {
  margin: 0;
}

/* ==========================================================================
   Contact (T5)
   ========================================================================== */

.ah-contact {
  padding-top: 40px;
}

.ah-contact__cards {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 24px;
}

.ah-contact__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 28px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
  background: var(--ah-white);
}

.ah-contact__label {
  color: var(--ah-orange-text);
  font-size: 13px;
  font-weight: 800;
}

.ah-contact__value {
  color: var(--ah-text);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ah-contact__value:hover {
  color: var(--ah-orange-text);
}

.ah-contact__text {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-contact__main {
  display: grid;
  grid-template-columns: minmax(0, 700px) 380px;
  justify-content: space-between;
  gap: 64px;
  padding-top: var(--ah-section-gap);
}

.ah-contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ah-contact__title {
  font-size: 30px;
}

.ah-contact__hint {
  color: var(--ah-grey);
  font-size: 15px;
  line-height: 1.7;
}

.ah-contact__image {
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--ah-radius-card);
  background: var(--ah-image-bg);
}

.ah-contact__image img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.ah-contact__address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ah-grey);
  font-size: 16px;
  font-style: normal;
  line-height: 1.6;
}

.ah-contact__address strong {
  margin-bottom: 4px;
  color: var(--ah-text);
  font-size: 19px;
}

/* WPForms in the design: labels bold, inputs 2 px border, radius 12, primary button. */
.ah-form .wpforms-container {
  margin: 0 !important;
}

.ah-form .wpforms-field {
  padding: 0 0 18px !important;
}

.ah-form .wpforms-field-label {
  margin-bottom: 8px !important;
  color: var(--ah-text) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.ah-form input[type="text"],
.ah-form input[type="email"],
.ah-form input[type="tel"],
.ah-form select,
.ah-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  height: 56px !important;
  padding: 0 16px !important;
  border: 2px solid var(--ah-input-border) !important;
  border-radius: var(--ah-radius-input) !important;
  background: var(--ah-white) !important;
  color: var(--ah-text) !important;
  font-family: var(--ah-font) !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.ah-form textarea {
  height: 180px !important;
  padding: 14px 16px !important;
}

.ah-form input:focus,
.ah-form select:focus,
.ah-form textarea:focus {
  border-color: var(--ah-orange) !important;
  outline: 0 !important;
}

.ah-form .wpforms-field-row,
.ah-form .wpforms-field-medium,
.ah-form .wpforms-field-large {
  max-width: 100% !important;
}

.ah-form .wpforms-field-checkbox li,
.ah-form .wpforms-field-gdpr-checkbox li {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: var(--ah-grey);
  font-size: 14px;
  line-height: 1.6;
}

.ah-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px !important;
  accent-color: var(--ah-orange);
}

.ah-form .wpforms-submit {
  height: var(--ah-btn-m) !important;
  padding: 0 26px !important;
  border: 0 !important;
  border-radius: var(--ah-radius-button) !important;
  background: var(--ah-orange) !important;
  color: var(--ah-white) !important;
  font-family: var(--ah-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.ah-form .wpforms-submit:hover {
  background: #E95600 !important;
}

.ah-form .wpforms-error {
  color: var(--ah-con) !important;
  font-size: 14px !important;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .ah-contact__main {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .ah-legal {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .ah-ghero--plain .ah-ghero__inner {
    padding-bottom: 28px;
  }

  .ah-legal {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 28px;
  }

  .ah-legal__aside .ah-toc--sidebar {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .ah-legal__aside .ah-toc--sidebar li:last-child .ah-toc__link {
    border-bottom: 1px solid var(--ah-line);
  }

  .ah-content .ah-address {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 24px;
  }

  .ah-contact {
    padding-top: 24px;
  }

  .ah-contact__cards {
    grid-auto-flow: row;
    gap: 12px;
  }

  .ah-contact__card {
    padding: 20px;
  }

  .ah-contact__value {
    font-size: 18px;
  }

  .ah-contact__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 40px;
  }

  .ah-contact__title {
    font-size: 24px;
  }

  .ah-contact__image img {
    height: 200px;
  }

  .ah-form .wpforms-submit {
    width: 100% !important;
  }
}

/* ==========================================================================
   About us (T18)
   ========================================================================== */

.ah-ahero {
  background: var(--ah-beige);
}

.ah-ahero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.ah-ahero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.ah-ahero__lead {
  color: var(--ah-grey);
  font-size: 18px;
  line-height: 1.75;
}

.ah-ahero__sign {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: flex-end;
  margin-top: 6px;
  padding-right: 16px;
  border-right: 3px solid var(--ah-orange);
  text-align: right;
  line-height: 1.4;
}

.ah-ahero__sign strong {
  font-size: 16px;
}

.ah-ahero__sign span {
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-ahero__image img {
  display: block;
  width: 100%;
  height: 460px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center bottom;
}

.ah-ahero__facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--ah-line);
  list-style: none;
}

.ah-ahero__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ah-ahero__facts svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--ah-orange-text);
}

.ah-ahero__facts li > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}

.ah-ahero__facts strong {
  font-size: 16px;
}

.ah-ahero__facts li > span > span {
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-about {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding-top: var(--ah-section-gap);
}

.ah-about--stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ah-about--last {
  padding-bottom: var(--ah-section-gap);
}

.ah-about-band {
  margin-top: var(--ah-section-gap);
  padding-bottom: var(--ah-section-gap);
  background: var(--ah-beige);
}

.ah-about-band--people {
  padding-bottom: 80px;
}

.ah-about--team {
  padding-top: 56px;
}

.ah-about__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ah-about__title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.ah-about__intro {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.75;
}

.ah-about__body {
  min-width: 0;
}

.ah-about__prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.ah-about__prose p {
  color: var(--ah-text);
  font-size: 17px;
  line-height: 1.8;
}

.ah-about__prose .ah-about__note,
.ah-about__note {
  color: var(--ah-grey);
  font-size: 14px;
  line-height: 1.6;
}

.ah-about__steps {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--ah-line);
  list-style: none;
}

.ah-about__steps li {
  display: grid;
  grid-template-columns: 72px 300px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--ah-line);
}

.ah-about__num {
  color: var(--ah-orange);
  font-size: 32px;
  font-weight: 800;
}

.ah-about__steps strong {
  font-size: 22px;
}

.ah-about__steps li > span:last-child {
  color: var(--ah-grey);
  font-size: 17px;
  line-height: 1.7;
}

.ah-about__reviewers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--ah-line);
}

.ah-about__label {
  color: var(--ah-orange-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ah-about__reviewers .ah-about__label {
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: none;
}

.ah-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-pills a,
.ah-pills span {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-pill);
  background: var(--ah-white);
  color: var(--ah-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.ah-pills a:hover {
  border-color: var(--ah-orange);
  color: var(--ah-orange-text);
}

.ah-about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ah-mediacard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
  background: var(--ah-white);
  color: var(--ah-text);
  text-decoration: none;
}

a.ah-mediacard:hover {
  border-color: var(--ah-orange);
}

.ah-mediacard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ah-mediacard__head strong {
  font-size: 19px;
  line-height: 1.3;
}

.ah-mediacard__head .ah-badge {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ah-mediacard__text {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.65;
}

.ah-mediacard__link {
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 800;
}

.ah-about__network {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.ah-about__network .ah-about__label {
  margin-bottom: 10px;
}

.ah-about__criteria {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-about__criteria li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid var(--ah-line);
  color: var(--ah-grey);
  font-size: 16px;
  font-weight: 700;
}

.ah-about__criteria svg {
  flex-shrink: 0;
  color: var(--ah-orange-text);
}

.ah-about__all {
  display: inline-block;
  margin-top: 16px;
}

.ah-about__founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.ah-founder {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ah-founder__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ah-founder__head picture {
  display: flex;
  flex-shrink: 0;
}

.ah-founder__photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ah-image-bg);
}

.ah-person__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
}

.ah-founder .ah-person__name {
  font-size: 22px;
}

.ah-founder__role {
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 700;
}

.ah-person__text {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.75;
}

.ah-li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--ah-linkedin);
  color: var(--ah-white);
}

.ah-founder__more {
  font-size: 15px;
}

.ah-about__team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-member {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--ah-line);
}

.ah-member__role {
  color: var(--ah-orange-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ah-member .ah-person__text {
  line-height: 1.7;
}

.ah-about__office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.ah-about__facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--ah-line);
}

.ah-about__facts p {
  font-size: 16px;
  line-height: 1.7;
}

.ah-about__facts a {
  color: var(--ah-text);
  text-decoration: none;
}

.ah-about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}

.ah-about__gallery img {
  display: block;
  width: 100%;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
}

.ah-about__gallery picture:first-child {
  grid-column: 1 / -1;
}

.ah-about__gallery img.is-big {
  height: 250px;
  border-radius: 20px;
}

.ah-about__gallery figcaption {
  grid-column: 1 / -1;
  color: var(--ah-grey);
  font-size: 13px;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .ah-about {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
  }

  .ah-about__steps li {
    grid-template-columns: 56px 220px minmax(0, 1fr);
  }

  .ah-ahero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ah-ahero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .ah-ahero__text {
    gap: 14px;
  }

  .ah-ahero__text h1 {
    font-size: var(--ah-h1-mobile);
  }

  .ah-ahero__lead {
    font-size: 16px;
  }

  .ah-ahero__image img {
    height: 300px;
  }

  .ah-ahero__facts {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
    padding-top: 20px;
  }

  .ah-about,
  .ah-about__network,
  .ah-about__media,
  .ah-about__founders,
  .ah-about__team,
  .ah-about__office {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .ah-about {
    padding-top: var(--ah-section-gap-mobile);
  }

  .ah-about__network,
  .ah-about__founders {
    gap: 32px;
  }

  .ah-about__team {
    gap: 0;
  }

  .ah-about-band {
    margin-top: var(--ah-section-gap-mobile);
    padding-bottom: var(--ah-section-gap-mobile);
  }

  .ah-about__title {
    font-size: 26px;
  }

  .ah-about__prose p {
    font-size: 16px;
  }

  .ah-about__steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 18px 0;
  }

  .ah-about__num {
    grid-row: span 2;
    font-size: 24px;
  }

  .ah-about__steps strong {
    font-size: 18px;
  }

  .ah-about__steps li > span:last-child {
    font-size: 15px;
  }

  .ah-founder .ah-person__name {
    font-size: 19px;
  }

  .ah-founder__photo {
    width: 64px;
    height: 64px;
  }
}

/* ==========================================================================
   Author profile (T12)
   ========================================================================== */

.ah-authorhero {
  background: var(--ah-beige);
}

.ah-authorhero__inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 40px;
}

.ah-authorhero__photo {
  overflow: hidden;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--ah-image-bg);
}

.ah-authorhero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ah-authorhero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ah-authorhero__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.ah-partnerbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-pill);
  background: var(--ah-white);
  font-size: 14px;
  font-weight: 800;
}

.ah-partnerbadge svg {
  width: 14px;
  height: 14px;
  color: var(--ah-orange-text);
}

.ah-authorhero__role {
  font-size: 20px;
  font-weight: 800;
}

.ah-authorhero__short {
  color: var(--ah-grey);
  font-size: 18px;
  line-height: 1.75;
}

.ah-pills--small span {
  padding: 8px 14px;
  font-size: 14px;
}

.ah-authorcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 34px;
  padding: 24px;
  border-radius: var(--ah-radius-card);
  background: var(--ah-white);
  box-shadow: var(--ah-shadow-raised);
}

.ah-authorcard__label {
  color: var(--ah-orange-text);
  font-size: 14px;
  font-weight: 800;
}

.ah-authorcard__firm {
  font-size: 17px;
  font-weight: 800;
}

.ah-authorcard__address {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-authorcard__site {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.ah-authorcard__count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
  padding-top: 16px;
  border-top: 1px solid var(--ah-line);
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-authorcard__count strong {
  color: var(--ah-text);
}

.ah-authorpage {
  display: grid;
  grid-template-columns: minmax(0, 800px) 320px;
  justify-content: space-between;
  gap: 64px;
  padding-top: var(--ah-section-gap);
  padding-bottom: var(--ah-section-gap);
}

.ah-authorpage__main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.ah-authorpage__about {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ah-line);
}

.ah-authorpage__about p {
  color: var(--ah-grey);
  font-size: 17px;
  line-height: 1.8;
}

.ah-authorpage__meta {
  margin-top: 8px;
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-postlist {
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--ah-line);
  list-style: none;
}

.ah-postrow {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--ah-line);
  color: var(--ah-text);
  text-decoration: none;
}

.ah-postrow__image {
  display: block;
  overflow: hidden;
  height: 96px;
  border-radius: 14px;
  background: var(--ah-image-bg);
}

.ah-postrow__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ah-postrow__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ah-postrow__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.ah-postrow:hover .ah-postrow__title {
  color: var(--ah-orange-text);
}

.ah-morebtn {
  align-self: flex-start;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  cursor: pointer;
}

.ah-authorpage__aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ah-authorpage__qual .ah-kicker {
  padding-bottom: 8px;
}

.ah-authorpage__qual .ah-about__criteria li {
  align-items: flex-start;
  color: var(--ah-text);
  font-weight: 500;
  line-height: 1.6;
}

.ah-authorpage__qual .ah-about__criteria svg {
  margin-top: 5px;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .ah-authorhero__inner {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .ah-authorhero__photo {
    width: 140px;
    height: 140px;
  }

  .ah-authorcard {
    grid-column: 2;
    margin-top: 0;
  }

  .ah-authorpage {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .ah-authorhero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .ah-authorhero__photo {
    width: 112px;
    height: 112px;
  }

  .ah-authorhero__text h1 {
    font-size: var(--ah-h1-mobile);
  }

  .ah-authorhero__role {
    font-size: 17px;
  }

  .ah-authorhero__short {
    font-size: 16px;
  }

  .ah-authorcard {
    margin-top: 4px;
    box-shadow: none;
  }

  .ah-authorpage {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: var(--ah-section-gap-mobile);
  }

  .ah-authorpage__about p {
    font-size: 16px;
  }

  .ah-postrow {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .ah-postrow__image {
    height: 66px;
    border-radius: 12px;
  }

  .ah-postrow__title {
    font-size: 16px;
  }
}

/* ==========================================================================
   Prio D: search (T13), 404 (T14), become a partner (T15), downloads (T16)
   ========================================================================== */

/* ---------- Shared: main column with a sidebar on the right ---------- */

.ah-sidelayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: var(--ah-section-gap);
}

.ah-sidelayout__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ah-asidecta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 24px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-peach);
}

.ah-asidecta__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.ah-asidecta__text {
  color: var(--ah-grey);
  font-size: 15px;
  line-height: 1.7;
}

.ah-asidecta .ah-btn {
  margin-top: 4px;
}

.ah-linklist__title {
  margin-bottom: 6px;
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ah-linklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-linklist a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--ah-line);
  color: var(--ah-text);
  font-size: 16px;
  text-decoration: none;
}

.ah-linklist a:hover {
  color: var(--ah-orange-text);
}

/* Note line at the bottom of a list page. */
.ah-pagenote {
  padding-bottom: 72px;
}

.ah-pagenote p {
  padding-top: 40px;
  border-top: 1px solid var(--ah-line);
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Search results (T13) ---------- */

.ah-shero .ah-page-hero__inner,
.ah-ehero .ah-page-hero__inner {
  padding-top: 64px;
}

.ah-shero__count {
  color: var(--ah-grey);
  font-size: 16px;
}

.ah-shero__count strong {
  color: var(--ah-text);
}

.ah-sresults__filters {
  padding-top: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ah-line);
}

.ah-sresults {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.ah-sresult {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--ah-line);
}

.ah-sresult__label,
.ah-download-row__label {
  color: var(--ah-orange-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.ah-sresult__title {
  color: var(--ah-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.ah-sresult__title:hover {
  color: var(--ah-orange-text);
}

.ah-sresult__text {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.65;
}

.ah-sresult__url {
  overflow-wrap: anywhere;
  color: var(--ah-grey);
  font-size: 13px;
}

.ah-sresults__empty {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 0;
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.7;
}

.ah-sresults__empty-title {
  color: var(--ah-text);
  font-size: 22px;
  font-weight: 800;
}

.ah-sidelayout .ah-pagination {
  justify-content: flex-start;
}

.ah-sidelayout .ah-filter {
  font-size: 15px;
}

/* ---------- 404 and 410 (T14) ---------- */

.ah-errorpage {
  padding-bottom: 0;
}

.ah-ctaband--error {
  max-width: none;
  padding: 48px 56px;
}

.ah-ctaband--error .ah-ctaband__title {
  font-size: 30px;
}

.ah-ehero .ah-search {
  max-width: 720px;
  margin-top: 8px;
}

.ah-errorpage {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.ah-errorpage__block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ah-errorpage__title {
  font-size: 32px;
  letter-spacing: -0.8px;
}

.ah-areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ah-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
  background: var(--ah-white);
  color: var(--ah-text);
  text-decoration: none;
}

.ah-area:hover {
  border-color: var(--ah-orange);
}

.ah-area__title {
  font-size: 18px;
  font-weight: 800;
}

.ah-area__text {
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-minicards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ah-minicard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ah-text);
  text-decoration: none;
}

.ah-minicard__image {
  overflow: hidden;
  aspect-ratio: 384 / 150;
  margin-bottom: 8px;
  border-radius: var(--ah-radius-card);
  background: var(--ah-image-bg);
}

.ah-minicard__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ah-minicard__label {
  color: var(--ah-orange-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.ah-minicard__title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.ah-minicard:hover .ah-minicard__title {
  color: var(--ah-orange-text);
}

/* ---------- Downloads (T16) ---------- */

.ah-downloads {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-download-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--ah-line);
}

.ah-download-row__file {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 68px;
  border-radius: 10px;
  background: var(--ah-peach);
  color: var(--ah-orange-dark);
  font-size: 12px;
  font-weight: 800;
}

.ah-download-row__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ah-download-row__title {
  font-size: 21px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.ah-download-row__title a {
  color: inherit;
  text-decoration: none;
}

.ah-download-row__title a:hover {
  color: var(--ah-orange-text);
}

.ah-download-row__text {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.6;
}

.ah-download-row__link {
  color: var(--ah-orange-text);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ah-download-row__link:hover {
  text-decoration: underline;
}

button.ah-filter {
  background: none;
  font-family: inherit;
  cursor: pointer;
}

button.ah-filter.is-active {
  background: var(--ah-white);
}

/* ---------- Become a partner (T15) ---------- */

.ah-kphero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 516px;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}

.ah-kphero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.ah-kphero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.ah-kphero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin: 12px 0 0;
}

.ah-kphero__facts dt {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.ah-kphero__facts dd {
  margin: 0;
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-kphero__box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 30px 32px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-white);
  box-shadow: var(--ah-shadow-raised);
}

.ah-kphero__box-title {
  font-size: 21px;
  letter-spacing: 0;
}

.ah-kphero__box .ah-checks {
  gap: 14px;
  font-size: 16px;
}

.ah-kphero__box-note {
  color: var(--ah-grey);
  font-size: 13px;
}

.ah-partner__title {
  font-size: 32px;
  letter-spacing: -0.8px;
}

.ah-partner-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.ah-partner-split > div {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ah-psteps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-psteps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
}

.ah-psteps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ah-peach);
  font-size: 14px;
  font-weight: 800;
}

.ah-psteps strong {
  font-size: 18px;
}

.ah-psteps p,
.ah-partner__note {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.65;
}

.ah-partner__fit {
  gap: 14px;
  font-size: 16px;
}

.ah-partner-ways {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 0;
}

.ah-partner-ways__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.ah-way {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 40px 32px 32px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-box);
  background: var(--ah-white);
}

.ah-way--peach {
  border-color: var(--ah-peach);
  background: var(--ah-peach);
}

.ah-way__title {
  font-size: 24px;
}

.ah-way__text {
  flex: 1;
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.65;
}

.ah-pcontact {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 44px 76px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-beige);
}

.ah-pcontact__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  text-align: center;
}

.ah-pcontact__person img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--ah-image-bg);
  object-fit: cover;
}

.ah-pcontact__person figcaption {
  display: flex;
  flex-direction: column;
}

.ah-pcontact__person strong {
  font-size: 17px;
}

.ah-pcontact__person span {
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-pcontact__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

.ah-pcontact__text > p {
  color: var(--ah-grey);
  font-size: 17px;
  line-height: 1.75;
}

/* ---------- Prio D, tablet and mobile ---------- */

@media (max-width: 1180px) {
  .ah-kphero__inner {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 40px;
  }

  .ah-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ah-sidelayout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 20px;
    padding-bottom: var(--ah-section-gap-mobile);
  }

  .ah-shero .ah-page-hero__inner,
  .ah-ehero .ah-page-hero__inner {
    padding-top: 40px;
  }

  .ah-search--l .ah-search__input,
  .ah-search--l .ah-btn {
    height: 52px;
  }

  .ah-search--l .ah-btn {
    padding: 0 18px;
    font-size: 16px;
  }

  .ah-sresult__title {
    font-size: 19px;
  }

  .ah-sresult__text {
    font-size: 15px;
  }

  .ah-errorpage {
    gap: 48px;
  }

  .ah-ctaband--error {
    padding: 28px 22px;
  }

  .ah-ctaband--error .ah-ctaband__title {
    font-size: 22px;
  }

  .ah-errorpage__title,
  .ah-partner__title {
    font-size: 26px;
  }

  .ah-areas {
    gap: 12px;
  }

  .ah-area {
    padding: 18px 16px;
  }

  .ah-area__title {
    font-size: 16px;
  }

  .ah-minicards {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ah-download-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 22px 0;
  }

  .ah-download-row__file {
    width: 44px;
    height: 54px;
    font-size: 11px;
  }

  .ah-download-row__title {
    font-size: 18px;
  }

  .ah-download-row__text {
    font-size: 15px;
  }

  .ah-download-row__link {
    grid-column: 2;
  }

  .ah-pagenote {
    padding-bottom: 48px;
  }

  .ah-pagenote p {
    padding-top: 28px;
    font-size: 15px;
  }

  .ah-kphero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .ah-kphero__buttons .ah-btn {
    flex: 1 1 100%;
  }

  .ah-kphero__facts {
    gap: 32px;
  }

  .ah-kphero__box {
    padding: 26px 22px;
  }

  .ah-partner-split,
  .ah-partner-ways__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .ah-partner-ways__grid {
    gap: 16px;
  }

  .ah-way {
    padding: 28px 22px 22px;
  }

  .ah-way__title {
    font-size: 21px;
  }

  .ah-pcontact {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 22px;
  }

  .ah-pcontact__person img {
    width: 120px;
    height: 120px;
  }
}

/* ---------- Phone fixes after the mobile click round (21 Oct 2026) ---------- */

@media (max-width: 900px) {
  /* Legal pages: contents first, text, the "Fragen dazu?" box at the very end. */
  .ah-legal__aside {
    display: contents;
  }

  .ah-legal__aside .ah-toc--sidebar {
    order: 1;
  }

  .ah-legal .ah-content--legal {
    order: 2;
  }

  .ah-legal__box {
    order: 3;
  }

  /* About us, team: the intro and the first person belong together, lines only
     between the people. */
  .ah-member:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

