/* iF DF / News page 28 — mobile-only Figma filter overlay.
   Separate stylesheet; intentionally does not affect desktop or other filter pages. */
@media screen and (max-width: 799px) {
  body.page-news .blog-filter-wrapper { position: relative; min-width: 0; }
  body.page-news .blog-filter-wrapper > .filter-mobile-blog {
    display: flex !important; width: 124px; min-width: 0; height: 54px;
    margin: 0 auto 40px; padding: 8px 8px 8px 18px; gap: 10px;
    justify-content: center; align-items: center; border: 0; border-radius: 30px;
    background: #efefef; color: #111; font-size: 14px; line-height: 20px;
    font-family: var(--font-body-monitor, var(--font-body)); cursor: pointer;
  }
  body.page-news .blog-filter-wrapper > .filter-mobile-blog > svg { display: none !important; }
  body.page-news .blog-filter-wrapper > .filter-mobile-blog::before { content: 'Filtern'; }
  body.page-news .blog-filter-wrapper > .filter-mobile-blog { font-size: 0; }
  body.page-news .blog-filter-wrapper > .filter-mobile-blog::before { font-size: 14px; }
  body.page-news .blog-filter-wrapper > .filter-mobile-blog::after {
    content: ''; width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 50%; border: 0;
    background: url('../images/Filter-Btn-filter-black.svg') center / 32px 32px no-repeat;
  }

  body.page-news .blog-filter-wrapper > .blog-filter {
    position: fixed !important; inset: 0 !important; top: 0 !important; left: 0 !important;
    width: 100vw !important; max-width: none !important;
    height: 100vh !important; height: 100dvh !important;
    margin: 0 !important; padding: 20px max(20px, calc((100vw - 375px)/2 + 20px)) 92px !important;
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    gap: 13px !important; overflow-x: hidden !important; overflow-y: auto !important;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: rgba(212,212,212,.70) !important;
    -webkit-backdrop-filter: blur(12.5px); backdrop-filter: blur(12.5px);
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    z-index: 99990 !important; transform: translateX(-102%);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
  }
  body.page-news .blog-filter-wrapper > .filter-mobile-blog.active + .blog-filter,
  body.page-news .blog-filter-wrapper > .blog-filter.ifdf-news-mobile-open {
    transform: translateX(0); opacity: 1; visibility: visible;
    pointer-events: auto;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown {
    display: block !important; position: relative !important;
    flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    border-radius: 27px !important; background: #efefef !important;
    box-shadow: none !important; overflow: hidden;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown.is-open {
    background: #fff !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown > .filter-parent,
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown > .year-filter-toggle {
    display: flex !important; width: 100% !important; height: 55px !important; min-height: 55px !important;
    margin: 0 !important; padding: 0 20px !important; justify-content: space-between !important;
    gap: 10px !important; align-items: center !important; position: relative !important;
    border: none !important; border-radius: 27px !important;
    background: transparent !important; box-shadow: none !important;
    font: 400 13px/18px var(--font-body-monitor, var(--font-body)) !important;
    text-align: left !important; color: #111 !important; text-transform: none !important;
    white-space: normal !important; letter-spacing: normal !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown.is-open > .filter-parent,
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown.is-open > .year-filter-toggle {
    font-weight: 600 !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown > button > svg.chevron-down-icon {
    display: block !important; position: static !important; width: 15px !important;
    height: 15px !important; flex: 0 0 15px; margin: 0 !important;
    transition: transform .2s ease;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown.is-open > button > svg.chevron-down-icon { transform: rotate(180deg); }
  body.page-news .blog-filter-wrapper .blog-filter > .filter-dropdown > .filter-dropdown-content,
  body.page-news .blog-filter-wrapper .blog-filter > .filter-dropdown--year > .year-filter-content {
    display: none !important; position: static !important; inset: auto !important;
    width: 100% !important; max-width: 100% !important; padding: 0 20px 20px !important;
    margin: 0 !important; background: #fff !important;
    border: 0 !important; border-radius: 0 0 27px 27px !important;
    box-shadow: none !important; gap: 5px !important;
    flex-direction: column !important; align-items: flex-start !important;
  }
  body.page-news .blog-filter-wrapper .blog-filter > .filter-dropdown.is-open > .filter-dropdown-content {
    display: flex !important;
  }
  body.page-news .blog-filter-wrapper .blog-filter .filter-dropdown-content .filter-option,
  body.page-news .blog-filter-wrapper .blog-filter .year-filter-list > .filter-option {
    display: inline-flex !important; align-items: center !important; justify-content: flex-start !important;
    gap: 4px !important; flex: 0 0 auto !important; width: fit-content !important;
    max-width: 100% !important; min-height: 24px !important; height: auto !important;
    margin: 0 !important; padding: 3px 9px 3px 8px !important;
    border: 1px solid #efefef !important; border-radius: 13px !important;
    background: #fff !important; box-shadow: none !important;
    font: 400 13px/18px var(--font-body-monitor, var(--font-body)) !important;
    color: #111 !important; text-transform: none !important; white-space: normal !important;
  }
  body.page-news .blog-filter-wrapper .blog-filter .filter-option-radio {
    width: 9px !important; height: 9px !important; flex: 0 0 9px !important;
    border: 1px solid #999 !important; background: transparent !important;
    border-radius: 50% !important;
  }
  body.page-news .blog-filter-wrapper .blog-filter .filter-option.is-active,
  body.page-news .blog-filter-wrapper .blog-filter .filter-option[aria-pressed='true'] {
    background: #efefef !important; border-color: #efefef !important;
  }
  body.page-news .blog-filter-wrapper .blog-filter .filter-option.is-active .filter-option-radio,
  body.page-news .blog-filter-wrapper .blog-filter .filter-option[aria-pressed='true'] .filter-option-radio {
    background: #929292 !important; border-color: #929292 !important;
  }
  body.page-news .blog-filter-wrapper .blog-filter .year-filter-list {
    display: flex !important; width: 100% !important; max-height: 32vh !important;
    overflow-y: auto !important; flex-direction: column; align-items: flex-start; gap: 5px;
  }
  body.page-news .blog-filter-wrapper .blog-filter .filter-reset { display: none !important; }
  body.page-news .blog-filter-wrapper .blog-filter > .blog-hover-indicator,
  body.page-news .blog-filter-wrapper .blog-filter > .ifdf-news-filter-action,
  body.page-news .blog-filter-wrapper .blog-filter > svg { display: none !important; }
  body.page-news .blog-filter-wrapper .blog-filter .close-blog {
    position: fixed !important; right: 22px !important; top: 19px !important;
    width: 24px !important; height: 24px !important; z-index: 5;
    cursor: pointer; background: transparent;
  }
  body.page-news .blog-filter-wrapper .blog-filter .close-blog::after {
    width: 20px; height: 20px; background-size: contain;
  }
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer {
    display: flex !important; align-items: center; justify-content: space-between;
    gap: 12px; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 20px max(20px, calc((100vw - 375px)/2 + 20px));
    min-height: 71px; z-index: 6; background: #fbfbfb;
  }
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer button {
    width: auto !important; min-height: 0 !important; height: auto !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    box-shadow: none !important; background: none !important; text-transform: none !important;
  }
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer .ifdf-news-mobile-reset {
    font: 700 10px/15px monospace !important; letter-spacing: -.4px;
    color: #585858 !important; text-decoration: underline;
  }
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer .ifdf-news-mobile-apply {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 31px !important; padding: 4px 11px 4px 13px !important;
    border-radius: 17px !important; background: #585858 !important;
    font: 400 14px/21px monospace !important; color: #fbfbfb !important;
  }
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer .ifdf-news-mobile-apply::after {
    content: '✓'; font-family: sans-serif; font-size: 16px;
  }
  body.page-news .blog-filter-wrapper > .blog-filter-reset-all { display: none !important; }
}

/* v2 — Mobile accordion correction against Figma node 6757:17643.
   The theme's responsive rules set .blog-filter button to flex-direction:column
   and width:100%; reset that at the actual controls, not on the desktop. */
@media screen and (max-width:799px) {
  /* The background SVG already draws the circle: no second stroke. */
  body.page-news .blog-filter-wrapper > .filter-mobile-blog::after {
    border: 0 !important;
    box-shadow: none !important;
    background-size: 32px 32px !important;
  }

  body.page-news .blog-filter-wrapper > .blog-filter {
    box-sizing: border-box !important;
    padding-top: 20px !important;
    padding-right: max(20px, calc((100vw - 375px)/2 + 20px)) !important;
    padding-left: max(20px, calc((100vw - 375px)/2 + 20px)) !important;
    padding-bottom: 96px !important;
    gap: 13px !important;
    align-items: stretch !important;
  }

  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    height: auto !important;
    min-height: 55px !important;
    max-height: none !important;
    overflow: hidden !important;
    border: 0 !important;
    background: #efefef !important;
    border-radius: 27px !important;
  }

  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown.is-open {
    background: #fff !important;
  }

  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown > button.filter-parent,
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown > button.year-filter-toggle {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    align-self: stretch !important;
    flex: none !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 55px !important;
    min-height: 55px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 27px !important;
    background: transparent !important;
    color: #111 !important;
    font-size: 13px !important;
    line-height: 18px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-align: left !important;
    white-space: nowrap !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown.is-open > button.filter-parent,
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown.is-open > button.year-filter-toggle {
    height: 57px !important;
    min-height: 57px !important;
    padding-top: 0 !important;
    font-weight: 600 !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown > button > span {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 18px !important;
    text-align: left !important;
    white-space: normal !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown > button > svg.chevron-down-icon {
    display: block !important;
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    transform-origin: center !important;
    align-self: center !important;
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    flex: 0 0 15px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown.is-open > button > svg.chevron-down-icon {
    transform: rotate(180deg) !important;
  }

  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown > .filter-dropdown-content {
    box-sizing: border-box !important;
    position: static !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 20px 20px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 0 27px 27px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    gap: 5px !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown:not(.is-open) > .filter-dropdown-content {
    display: none !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter > .filter-dropdown.is-open > .filter-dropdown-content {
    display: flex !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter .filter-dropdown-content > button.filter-option,
  body.page-news .blog-filter-wrapper > .blog-filter .year-filter-list > button.filter-option {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    flex: none !important;
    gap: 4px !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 24px !important;
    margin: 0 !important;
    padding: 3px 9px 3px 8px !important;
    border: 1px solid #efefef !important;
    border-radius: 13px !important;
    background: white !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 18px !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-align: left !important;
    white-space: normal !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter .filter-dropdown-content > button.filter-option > span,
  body.page-news .blog-filter-wrapper > .blog-filter .year-filter-list > button.filter-option > span {
    display: inline-block !important;
    flex: 0 1 auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 18px !important;
    white-space: normal !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter .filter-dropdown-content > button.filter-option > span.filter-option-radio,
  body.page-news .blog-filter-wrapper > .blog-filter .year-filter-list > button.filter-option > span.filter-option-radio {
    box-sizing: border-box !important;
    display: block !important;
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    flex: 0 0 9px !important;
    margin: 0 !important;
    border: 1px solid #999 !important;
    border-radius: 50% !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter .filter-dropdown-content > button.filter-option.is-active,
  body.page-news .blog-filter-wrapper > .blog-filter .filter-dropdown-content > button.filter-option[aria-pressed="true"],
  body.page-news .blog-filter-wrapper > .blog-filter .year-filter-list > button.filter-option.is-active,
  body.page-news .blog-filter-wrapper > .blog-filter .year-filter-list > button.filter-option[aria-pressed="true"] {
    background: #efefef !important;
  }
  body.page-news .blog-filter-wrapper > .blog-filter .year-filter-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: min(40vh, 320px) !important;
    overflow-y: auto !important;
  }

  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer {
    box-sizing: border-box !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 71px !important;
  }
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer button.ifdf-news-mobile-reset {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    line-height: 15px !important;
  }
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer button.ifdf-news-mobile-apply {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 117px !important;
    height: 31px !important;
    min-height: 31px !important;
    padding: 4px 11px 4px 13px !important;
    border-radius: 17px !important;
    white-space: nowrap !important;
    line-height: 21px !important;
    text-align: center !important;
  }
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer button.ifdf-news-mobile-apply::after {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    line-height: 1 !important;
  }
}

/* v3 — Exact 14×14 Anwenden check icon supplied by the client.
   Preserve the existing button, click handler and all other V2 styles. */
@media screen and (max-width: 799px) {
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer button.ifdf-news-mobile-apply::after {
    content: none !important;
    display: none !important;
  }
  body.page-news .blog-filter-wrapper .ifdf-news-mobile-footer button.ifdf-news-mobile-apply > svg {
    display: block !important;
    position: static !important;
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }
}

/* v5: Checked filter icon only when at least one News filter is selected. */
@media screen and (max-width: 799px) {
  body.page-news .blog-filter-wrapper > .filter-mobile-blog.ifdf-news-has-selection::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31' height='31' viewBox='0 0 31 31' fill='none'%3E%3Crect width='30.7834' height='30.9084' rx='15.3917' fill='%23909090'/%3E%3Cpath d='M9.76947 15.921L14.4444 22.1376L21.7821 9.54159' stroke='%23FBFBFB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: 31px 31px !important;
  }
}
