/* Mobile Navigation (Burger-Menü) für den statischen Abzug */
.dt-burger, .dt-mobile-nav { display: none; }

@media (max-width: 1023px) {
  .header-wrapper > .sw-top-navigation[data-cy="main-header"] {
    justify-content: space-between !important;
    align-items: center;
    position: relative;
  }
  .header-wrapper .bsn-logo { max-width: 70%; }

  .dt-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 12px 11px;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .dt-burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #3d3d3d;
    transition: transform .2s ease, opacity .2s ease;
  }
  .dt-burger:focus-visible { outline: 2px solid #8bb11e; outline-offset: 2px; }
  .dt-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .dt-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .dt-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .dt-mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;   /* exakte Position setzt nav.js beim Öffnen */
    box-sizing: border-box;
    z-index: 50;
    background: #fff;
    border-top: 3px solid #8bb11e;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.15), 0 4px 6px -2px rgba(0,0,0,.08);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .dt-mobile-nav[hidden] { display: none; }

  .dt-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .dt-mobile-nav > ul > li { border-bottom: 1px solid #e6e6e6; }
  .dt-mobile-nav > ul > li:last-child { border-bottom: 0; }

  .dt-mobile-nav a,
  .dt-mobile-nav .dt-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #3d3d3d;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: .02em;
  }
  .dt-mobile-nav .dt-group { padding-bottom: 4px; font-weight: 600; }
  .dt-mobile-nav .nav-icon { display: inline-flex; flex: 0 0 22px; width: 22px; justify-content: center; margin: 0; }
  .dt-mobile-nav .nav-icon svg { max-width: 22px; max-height: 22px; }
  .dt-mobile-nav ul ul a {
    padding: 11px 20px 11px 54px;
    text-transform: none;
    font-size: 15px;
  }
  .dt-mobile-nav ul ul li:last-child a { padding-bottom: 16px; }
  .dt-mobile-nav a:hover,
  .dt-mobile-nav a:focus-visible { color: #8bb11e; background: #f6f9ee; outline: none; }
  .dt-mobile-nav a[aria-current="page"] { color: #8bb11e; font-weight: 600; }

  body.dt-nav-open { overflow: hidden; }
}
