/* Mobile navigation and motto: keep desktop composition unchanged. */
@media (max-width: 760px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 25px 0 0;
  }

  header .brand { font-size: 31px; }
  header .brand svg { width: 25px; height: 36px; margin-left: 8px; }

  header nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 25px;
    padding: 0 3px;
    border-top: 1px solid var(--line);
    gap: 12px;
    font-size: 11px;
    letter-spacing: .3px;
  }

  header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 17px 0;
    white-space: nowrap;
    text-align: center;
  }

  header nav .nav-cta {
    color: var(--red);
    background: transparent;
  }

  header nav .nav-cta:hover {
    text-decoration: underline;
  }

  #stueck .piece-poster {
    position: relative;
    width: calc(100% / .9);
    max-width: none;
    margin: 0 0 0 calc(-100% / 18);
    padding: 30px calc(100% / 18) 28px;
    background: var(--paper) url('ziegelwand-tusche.webp') center / 100% 100% no-repeat;
  }

  #stueck .piece-poster img {
    width: 100%;
    max-width: 550px;
    margin: auto;
    box-shadow: 3px 5px 9px #12121230;
  }

  #stueck .piece-poster::before,
  #stueck .piece-poster::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 22px;
    width: 37px;
    height: 17px;
    background: #e4cfa4cc;
  }

  #stueck .piece-poster::before {
    left: max(calc(5vw + 16px), calc(50% - 259px));
    transform: rotate(-18deg);
  }

  #stueck .piece-poster::after {
    right: max(calc(5vw + 16px), calc(50% - 259px));
    transform: rotate(19deg);
  }

  .marquee {
    display: block;
    overflow: hidden;
    padding: 11px 0;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 1px;
  }

  .marquee .motto-track {
    display: flex;
    width: max-content;
    gap: 24px;
    animation: motto-scroll 32s linear infinite;
  }

  .marquee .motto-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 24px;
  }

  .marquee span { white-space: nowrap; }
  .marquee span:nth-child(even) { font-size: 15px; line-height: 1; }
  .marquee:hover .motto-track { animation-play-state: paused; }
}

.motto-track, .motto-group { display: contents; }
.motto-repeat { display: none; }

@keyframes motto-scroll {
  to { transform: translateX(calc(-50% - 12px)); }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee .motto-track { animation: none; padding: 0 18px; }
  .marquee .motto-repeat { display: none; }
}
