/* Mobile layouts and direct employer / applicant actions. */
.mobile-apply-link { display: none; }

@media (max-width: 768px) {
  :root { --mobile-action-height: 74px; }
  html { scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
  body { padding-bottom: calc(var(--mobile-action-height) + env(safe-area-inset-bottom, 0px)); }

  .nav__logo img { height: 44px !important; max-width: 200px; width: auto; object-fit: contain; }
  .page-hero { padding-block: 1.5rem 2rem; }
  .page-hero__title, .hero__title {
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.2;
    letter-spacing: -.02em;
  }
  .page-hero__title { font-size: clamp(1.75rem, 6vw, 2.2rem); }
  .hero__title { font-size: clamp(1.85rem, 6.5vw, 2.4rem); }
  .page-hero__sub, .hero__sub { font-size: 1rem; line-height: 1.65; }
  .hero__inner { min-width: 0; gap: 1.5rem; }
  .hero__content { min-width: 0; }
  .breadcrumb { flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; line-height: 1.45; }
  .breadcrumb__current { flex: 1 0 100%; overflow-wrap: anywhere; }
  .page-hero .eyebrow { max-width: 100%; overflow-wrap: anywhere; }
  .section__title, .employer-content h2 { overflow-wrap: anywhere; hyphens: auto; }
  .employer-content { font-size: 1rem; line-height: 1.75; }
  .employer-content h2 { font-size: 1.4rem; margin-top: 1.75rem; }
  .employer-content li { padding-inline-start: .15rem; }
  .mobile-apply-link { display: inline-flex; margin-top: 1.5rem; }

  /* Native selects must not set the grid's minimum width. */
  .contact-grid, .contact-grid__form, .contact-grid__info,
  .kand-form-wrap, .kand-form-card, .kand-fieldset,
  .form__row, .form__group { min-width: 0; }
  .contact-grid, .form__row { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { gap: 1.5rem; }
  .stats-bar__inner { grid-template-columns: minmax(0, 1fr) !important; gap: 1.5rem !important; }
  .form__row { gap: 0; }
  .contact-grid .card, .kand-form-card { padding: 1.25rem; }
  .form__input, .form__select, .form__textarea {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    min-height: 48px;
    scroll-margin-block: 8px 110px;
  }
  select.form__input, .form__select {
    padding-inline-end: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5e5e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
  }
  [dir="rtl"] select.form__input, [dir="rtl"] .form__select { background-position: left .75rem center; }
  .form__error { font-size: .875rem; overflow-wrap: anywhere; }
  .form__check { display: flex; align-items: flex-start; gap: .75rem; line-height: 1.6; }
  .form__check input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin-top: .2rem; }
  .form__check span { min-width: 0; overflow-wrap: anywhere; }
  .kand-fieldset__legend, .kand-upload-zone, .kand-file-list li { min-width: 0; overflow-wrap: anywhere; }
  .kand-file-list li { word-break: break-word; }
  .contact-info__item a, .footer__link { overflow-wrap: anywhere; }
  #main-content .btn { min-width: 0; max-width: 100%; min-height: 48px; white-space: normal; line-height: 1.4; text-align: center; justify-content: center; }
  #contactForm button[type="submit"], .kand-form__footer .btn,
  .page-hero .btn, .zielgruppe-section .btn { width: 100%; padding: .9rem 1rem; }
  #personalbedarf, #karriere-form-heading { scroll-margin-top: 0; }
  .kand-form-wrap > .text-center { transform: none; }

  .mobile-bar {
    grid-template-columns: minmax(76px, 1fr) minmax(0, 1.5fr) 44px;
    height: calc(var(--mobile-action-height) + env(safe-area-inset-bottom, 0px));
    padding-inline: 12px;
    gap: 8px;
  }
  .mobile-bar__secondary, .mobile-bar__cta {
    min-width: 0;
    min-height: 44px;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
    font-size: .82rem;
    padding: .5rem .65rem;
  }
  .mobile-bar__secondary { color: white; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; font-weight: 600; }
  .mobile-bar a:focus-visible, .mobile-nav-sheet button:focus-visible, .mobile-nav-sheet a:focus-visible { outline: 2px solid white; outline-offset: 2px; }
  .mobile-nav-sheet__panel {
    bottom: calc(var(--mobile-action-height) + env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - 64px - var(--mobile-action-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
  }
  .mobile-nav-sheet__handle-wrap { position: sticky; top: 0; min-height: 48px; z-index: 1; background: var(--primary); }
  .mobile-nav-sheet__close { position: absolute; inset-inline-end: 8px; top: 2px; width: 44px; height: 44px; border: none; border-radius: 10px; background: transparent; color: white; display: grid; place-items: center; }
  .mobile-nav-sheet__link { min-height: 48px; font-size: 1rem; padding: .85rem 1.25rem; }
  .mobile-nav-sheet__link--active { border-left: 0; border-right: 0; border-inline-start: 3px solid var(--secondary); }
  .mobile-nav-sheet__lang .lang-switcher__option { min-height: 44px; }
  .cookie-banner { bottom: calc(var(--mobile-action-height) + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
  .section { padding-block: 2.5rem; }
  .page-hero .breadcrumb { font-size: .8rem; }
  .page-hero__title { font-size: 1.75rem; }
  .employer-content h2 { font-size: 1.3rem; }
  .kand-form-card, .contact-grid .card { border-radius: 8px; }
}
