/* Override fixes for mobile header */
@media screen and (max-width: 1199px) {
  .cs_menu_toggle {
    z-index: 9999 !important;
    color: #111;
  }
  .cs_menu_dropdown_toggle {
    z-index: 10000 !important;
    color: #111;
  }
}

/* Mobile improvements for autoverwertung city pages */
.avw_page_content,
.avw_content_section,
.avw_faq_section .cs_accordian,
.avw_faq_section .cs_accordian_head,
.avw_faq_section .cs_accordian_body {
  min-width: 0;
}

.avw_page_content {
  overflow-wrap: anywhere;
}

.avw_content_section h1,
.avw_content_section h2,
.avw_faq_section .cs_accordian_head h3 {
  hyphens: auto;
  overflow: visible;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media screen and (max-width: 991px) {
  .avw_page_content {
    gap: 24px;
  }

  .avw_content_section h1 {
    font-size: 34px;
    line-height: 1.18em;
  }

  .avw_content_section h2 {
    font-size: 28px;
    line-height: 1.22em;
  }
}

@media screen and (max-width: 767px) {
  .avw_page_heading {
    min-height: 270px;
    height: auto;
    padding: 88px 0 54px;
    align-items: flex-end;
  }

  .avw_page_heading .cs_fs_50 {
    font-size: 28px;
    line-height: 1.22em;
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .avw_page_heading .breadcrumb {
    font-size: 14px;
    line-height: 1.45em;
    row-gap: 4px;
  }

  .avw_page_content {
    gap: 18px;
  }

  .avw_content_section {
    padding: 22px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  }

  .avw_intro_section {
    border-left-width: 3px;
  }

  .avw_content_section h1 {
    font-size: 24px;
    line-height: 1.28em;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .avw_content_section h2 {
    font-size: 23px;
    line-height: 1.24em;
    margin-bottom: 13px;
  }

  .avw_content_section p,
  .avw_faq_section .cs_accordian_body p {
    font-size: 15px;
    line-height: 1.66em;
  }

  .avw_faq_section .cs_accordians {
    gap: 10px;
  }

  .avw_faq_section .cs_accordian.cs_style_1 .cs_accordian_head {
    padding: 16px 42px 16px 16px;
  }

  .avw_faq_section .cs_accordian.cs_style_1 .cs_accordian_body {
    padding: 14px 16px 16px;
  }

  .avw_faq_section .cs_accordian.cs_style_1 .cs_accordian_toggle {
    top: 18px;
    right: 16px;
  }

  .avw_faq_section .cs_accordian_head h3 {
    font-size: 17px;
    line-height: 1.35em;
  }
}

@media screen and (max-width: 420px) {
  .avw_page_heading .cs_fs_50 {
    font-size: 24px;
    line-height: 1.24em;
  }

  .avw_page_heading .breadcrumb {
    display: none;
  }

  .avw_content_section {
    padding: 20px 14px;
  }

  .avw_content_section h1 {
    font-size: 20px;
    line-height: 1.3em;
  }

  .avw_content_section h2 {
    font-size: 21px;
  }
}

/* City landing page visual structure */
.avw_city_feature {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--heading-color);
  box-shadow: 0 18px 45px rgba(0, 19, 61, 0.14);
}
.avw_city_feature img {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
}
.avw_city_feature figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 48px 28px 22px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(0, 19, 61, 0.9));
}
.avw_service_highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.avw_service_highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 22px;
  border: 1px solid rgba(43, 207, 116, 0.25);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f3fbf7 100%);
  box-shadow: 0 10px 28px rgba(0, 19, 61, 0.06);
}
.avw_service_icon {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-color);
}
.avw_service_highlight h2 {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.25;
}
.avw_service_highlight p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}
.avw_page_content > .avw_content_section {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 19, 61, 0.07);
}
.avw_page_content > .avw_content_section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  content: "";
  background: var(--accent-color);
}
.avw_page_content > .avw_content_section:nth-of-type(odd) {
  background: #f7faf8;
}
.avw_page_content > .avw_content_section h1,
.avw_page_content > .avw_content_section h2 {
  position: relative;
  padding-bottom: 13px;
}
.avw_page_content > .avw_content_section h1::after,
.avw_page_content > .avw_content_section h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  content: "";
  background: var(--accent-color);
}
@media (max-width: 991px) {
  .avw_service_highlights {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .avw_city_feature {
    border-radius: 12px;
  }
  .avw_city_feature img {
    height: 260px;
  }
  .avw_city_feature figcaption {
    padding: 40px 18px 16px;
    font-size: 14px;
  }
  .avw_service_highlight {
    padding: 21px 18px;
  }
}
/* City content interlude images */
.avw_content_interlude {
  position: relative;
  margin: 4px 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--heading-color);
  box-shadow: 0 14px 38px rgba(0, 19, 61, 0.12);
}
.avw_content_interlude img {
  display: block;
  width: 100%;
  height: clamp(250px, 34vw, 430px);
  object-fit: cover;
  transition: transform 0.45s ease;
}
.avw_content_interlude:hover img {
  transform: scale(1.025);
}
.avw_content_interlude figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 50px 26px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(0, 19, 61, 0.92));
}
@media (max-width: 767px) {
  .avw_content_interlude {
    border-radius: 12px;
  }
  .avw_content_interlude img {
    height: 235px;
  }
  .avw_content_interlude figcaption {
    padding: 42px 17px 15px;
    font-size: 14px;
  }
}
/* Accessibility and motion preferences */
.cs_skip_link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100000;
  padding: 10px 16px;
  color: #00133d;
  font-weight: 700;
  background: #fff;
  border: 2px solid #2bcf74;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.cs_skip_link:focus {
  transform: translateY(0);
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #126b3d;
  outline-offset: 3px;
}
[aria-current="page"] {
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
