/* ==================================================== */
/* 11) Media Queries                                    */
/* ==================================================== */
@media only screen and (max-width: 800px) {
  #mittig {
    width: 95%;
  }

  .action-button-row:not(.haupt-nav) > *,
  .button-group:not(.haupt-nav) > *,
  .drei-button:not(.haupt-nav) > * {
    width: 100%;
    box-sizing: border-box;
  }

  .action-button-row:not(.haupt-nav) .btn,
  .button-group:not(.haupt-nav) .btn,
  .drei-button:not(.haupt-nav) .btn,
  .action-button-row:not(.haupt-nav) input[type="submit"],
  .button-group:not(.haupt-nav) input[type="submit"],
  .drei-button:not(.haupt-nav) input[type="submit"] {
    width: 100%;
    display: flex;
  }

  .grid-container,
  .grid-half,
  .fundstelle-grid {
    display: block;
  }

  .fundstelle-item input {
    margin-bottom: 15px;
  }

  .zeitraum-flex {
    display: block;
  }

  .zeitraum-flex .input-jahr {
    width: 100%;
    margin: 2px 0 15px;
  }

  .flex-admin-col,
  .admin-keyword-column {
    min-width: 100%;
  }

  .border-left-mobile {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-soft);
    padding-top: 15px;
    margin-top: 10px;
  }

  .account-delete-form {
    width: 100%;
  }

  /* Custom Checkbox/Radio (mobile) */
  .suche-container br {
    display: none;
  }

  .suche-container input[type="radio"],
  .suche-container input[type="checkbox"] {
    display: none;
  }

  .suche-container input[type="radio"] + label,
  .suche-container input[type="checkbox"] + label {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    width: 100%;
    margin-right: 0;
  }

  .suche-container input[type="radio"] + label::before,
  .suche-container input[type="checkbox"] + label::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    background: white;
    margin-top: 2px;
  }

  .suche-container input[type="radio"] + label::before {
    border-radius: 50%;
  }

  .suche-container input[type="checkbox"] + label::before {
    border-radius: 4px;
  }

  .suche-container input:checked + label::before {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: inset 0 0 0 4px white;
  }

  .scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
  }

  .scroll-wrapper .haupt-nav {
    margin-bottom: 0;
  }

  .scroll-wrapper .link-navigation-container,
  .scroll-wrapper .search-result-navigation {
    padding-bottom: 0;
  }

  .scroll-wrapper::before,
  .scroll-wrapper::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: var(--primary);
    font-weight: bold;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
  }

  .scroll-wrapper.has-horizontal-overflow::before,
  .scroll-wrapper.has-horizontal-overflow::after {
    opacity: 0.6;
  }

  .scroll-wrapper::before {
    left: -12px;
    content: "‹";
  }

  .scroll-wrapper::after {
    right: -12px;
    content: "›";
  }

  .haupt-nav .btn {
    width: auto !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    width: 100%;
  }

  .footer-link {
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .footer-links [data-pwa-install-restore-separator] {
    display: none !important;
  }

  .footer-links [data-pwa-install-restore] {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    margin-top: 2px;
  }

  .footer-copyright {
    order: initial;
    margin-top: 2px;
    text-align: center;
  }

  .footer-copyright::after {
    content: none;
  }
}
