@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Logo-Scroll auf Mobile: nicht wrappen, sondern wie auf Desktop horizontal animieren.
     Vorherige Regel hat width:200% gesetzt, was zu Zeilenumbruch führte. */
  [style*="animation:scrollLogos"] {
    flex-wrap: nowrap !important;
    width: max-content !important;
  }
  [style*="animation:scrollLogos"] > * {
    flex-shrink: 0 !important;
  }

  nav {
    padding: 14px 5% !important;
    gap: 12px;
    background: rgba(26, 58, 46, 0.96) !important;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(7, 12, 10, 0.18);
  }

  .nav-logo {
    font-size: 18px !important;
    line-height: 1;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .nav-links,
  nav .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    gap: 5px;
    padding: 0 !important;
    border: 1px solid rgba(250, 250, 248, 0.16);
    border-radius: 12px;
    background: rgba(250, 250, 248, 0.06);
    flex-shrink: 0;
  }

  .hamburger span {
    width: 20px !important;
  }

  .mobile-menu {
    display: flex !important;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0 !important;
    padding: 0 !important;
    background: rgba(7, 12, 10, 0.48) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease !important;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-panel {
    width: min(88vw, 380px);
    min-height: 100%;
    padding: 24px 22px 32px;
    background: var(--forest-deep);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    box-shadow: -20px 0 48px rgba(0, 0, 0, 0.34);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(250, 250, 248, 0.1);
  }

  .mobile-menu-brand {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.02em;
  }

  .mobile-menu-brand span {
    color: var(--gold);
  }

  .mobile-menu .close-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--cream);
    background: rgba(250, 250, 248, 0.06);
    border: 1px solid rgba(250, 250, 248, 0.12);
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .mobile-menu .close-btn:hover {
    background: rgba(250, 250, 248, 0.1);
    border-color: rgba(200, 168, 75, 0.35);
  }

  .mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 250, 248, 0.46);
    margin-top: 4px;
  }

  .mobile-menu a {
    width: 100%;
    font-family: var(--font-body) !important;
    font-size: 17px !important;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cream) !important;
    padding: 14px 16px !important;
    background: rgba(250, 250, 248, 0.05);
    border: 1px solid rgba(250, 250, 248, 0.08);
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .mobile-menu a:hover {
    color: var(--cream) !important;
    background: rgba(250, 250, 248, 0.08);
    border-color: rgba(250, 250, 248, 0.14);
  }

  .mobile-menu a.is-current {
    background: rgba(200, 168, 75, 0.1);
    border-color: rgba(200, 168, 75, 0.42);
  }

  .mobile-menu a.mobile-menu-primary {
    background: var(--gold);
    border-color: transparent;
    color: var(--forest-deep) !important;
    font-weight: 700;
  }

  .mobile-menu a.mobile-menu-primary:hover {
    background: var(--gold-light);
    color: var(--forest-deep) !important;
  }

  .hero {
    min-height: auto !important;
    padding: 118px 5% 60px !important;
  }

  .hero > div[style*="max-width:1240px"] {
    padding: 0 !important;
  }

  .hero [style*="display:flex;align-items:center;gap:8px;font-family"] {
    display: block !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 18px !important;
  }

  .hero [style*="display:grid;grid-template-columns:1fr 1fr;gap:80px"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .hero h1,
  .hero [style*="font-size:clamp(36px,4.5vw,62px)"] {
    font-size: clamp(31px, 9vw, 42px) !important;
    line-height: 1.06 !important;
    max-width: 11ch;
    text-wrap: balance;
    margin-bottom: 18px !important;
  }

  .hero p[style*="font-size:17px"] {
    font-size: 16px !important;
    line-height: 1.7 !important;
    max-width: none !important;
    margin-bottom: 28px !important;
  }

  .hero [style*="display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-bottom:36px"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 28px !important;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 16px 18px !important;
  }

  .hero [style*="display:flex;flex-wrap:wrap;gap:20px;font-size:13px"] {
    display: grid !important;
    gap: 12px !important;
    font-size: 12.5px !important;
  }

  .hero [style*="display:flex;flex-wrap:wrap;gap:20px;font-size:13px"] > span {
    align-items: flex-start !important;
  }

  .hero [style*="display:flex;flex-wrap:wrap;gap:20px;font-size:13px"] svg {
    margin-top: 3px;
  }

  .mobile-cta-bar {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-cta-bar .btn-primary,
  .mobile-cta-bar .btn-secondary {
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 12px !important;
  }

  #backToTop {
    bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 12px 4.5% !important;
  }

  .mobile-menu-panel {
    width: min(92vw, 360px);
    padding: 20px 18px 28px;
  }

  .mobile-menu-brand {
    font-size: 22px;
  }

  .mobile-menu a {
    font-size: 16px !important;
    padding: 13px 14px !important;
  }

  .hero {
    padding: 110px 5% 54px !important;
  }

  .hero h1,
  .hero [style*="font-size:clamp(36px,4.5vw,62px)"] {
    font-size: clamp(28px, 8.8vw, 36px) !important;
    max-width: 10ch;
  }

  .hero [style*="display:flex;align-items:center;gap:8px;font-family"] {
    font-size: 9px !important;
  }
}
