@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  nav {
    padding: 18px 22px !important;
    gap: 12px !important;
  }

  .n-logo img {
    height: 28px !important;
  }

  .n-left {
    gap: 12px !important;
    min-width: 0;
  }

  .n-menu {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  .n-menu summary {
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .n-menu summary::after {
    width: 7px !important;
    height: 7px !important;
    border-width: 1.6px !important;
    border-radius: 2px !important;
    transform-origin: center !important;
  }

  .n-menu[open] summary::after {
    transform: rotate(225deg) !important;
  }

  .n-menu-panel {
    right: 0 !important;
    left: auto !important;
    min-width: min(260px, calc(100vw - 36px)) !important;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    border-radius: 22px !important;
  }

  footer {
    padding: 34px 22px !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .page-datenschutz h1,
  .page-faq h1 {
    font-size: clamp(46px, 14vw, 66px) !important;
    line-height: 0.95 !important;
  }

  .page-datenschutz h1 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(40px, 12vw, 58px) !important;
  }

  .page-datenschutz h1 .hero-word {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .page-datenschutz h1 .text-marker,
  .page-faq h1 .text-marker {
    padding-right: 0 !important;
  }

  .page-datenschutz h1 .text-marker {
    display: block !important;
    margin-top: 6px !important;
  }

  .page-datenschutz h2,
  .page-datenschutz h3 {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  .page-datenschutz .rounded-\[3rem\] h2,
  .page-datenschutz .rounded-\[2\.5rem\] h2 {
    display: block !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    font-size: clamp(22px, 7vw, 30px) !important;
    line-height: 1.1 !important;
  }

  .page-faq h1 .gsap-hero-text,
  .page-faq h1 .text-marker {
    display: block !important;
    width: 100% !important;
  }

  .page-faq h1 .text-marker {
    font-size: clamp(38px, 11.5vw, 54px) !important;
    line-height: 0.98 !important;
  }

  .n-cta {
    display: none !important;
  }

  #act1,
  body > section:first-of-type,
  main > section:first-of-type {
    min-height: auto !important;
    padding: 108px 20px 64px !important;
  }

  #act1 {
    min-height: 92vh !important;
    justify-content: center !important;
  }

  #act1 .a1-eye {
    gap: 8px !important;
    margin-bottom: 16px !important;
    font-size: 9px !important;
    letter-spacing: 0.14em !important;
    white-space: nowrap;
  }

  #act1 .a1-eye::before,
  #act1 .a1-eye::after {
    width: 18px !important;
    height: 1px !important;
  }

  #act1 .a1-h1 {
    font-size: clamp(64px, 21vw, 92px) !important;
    line-height: 0.88 !important;
  }

  .a1-h1,
  .hero-title,
  body > section:first-of-type h1,
  main > section:first-of-type h1,
  h1[class*="text-[3.5rem]"],
  h1[class*="text-[4rem]"],
  h1[class*="text-[4.6rem]"],
  h1[class*="text-[5rem]"] {
    font-size: clamp(58px, 19vw, 82px) !important;
    line-height: 0.92 !important;
    letter-spacing: 0 !important;
    margin-bottom: 22px !important;
  }

  #act1 .a1-trustline {
    margin-top: 18px !important;
    font-size: 10px !important;
    letter-spacing: 0.14em !important;
  }

  #act1 .a1-scroll {
    position: static !important;
    display: flex !important;
    transform: none !important;
    margin-top: 10px !important;
  }

  #act1 .a1-scroll span {
    font-size: 8px !important;
    letter-spacing: 0.14em !important;
    white-space: nowrap;
    line-height: 1 !important;
  }

  .a1-sub,
  .hero-text,
  body > section:first-of-type p,
  main > section:first-of-type p,
  p[class*="md:text-2xl"],
  p[class*="text-xl"] {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }

  h2[class*="text-4xl"],
  h2[class*="text-5xl"],
  h2[class*="text-6xl"],
  h2[class*="text-7xl"],
  .a2-h2,
  .a3-h2,
  .trust-h2,
  .faq-h2 {
    font-size: clamp(36px, 11vw, 52px) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  h3[class*="text-3xl"],
  h3[class*="text-4xl"],
  h4[class*="text-3xl"],
  h4[class*="text-4xl"] {
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 1.1 !important;
  }

  a[class*="px-12"],
  button[class*="px-12"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  a[class*="py-6"],
  button[class*="py-6"],
  .btn-primary,
  .btn-secondary,
  .mag-btn {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    font-size: 15px !important;
  }

  #act2,
  #act4-trust,
  #act4-faq,
  #act5-cta {
    padding: 92px 20px !important;
  }

  .p-cards {
    gap: 18px !important;
    margin-bottom: 64px !important;
    transform: none !important;
  }

  .p-card,
  .glass-card,
  .faq-item,
  .trust-values,
  .energy-copy {
    border-radius: 20px !important;
    padding: 28px 22px !important;
  }

  .c-num {
    font-size: 58px !important;
  }

  #act3 {
    min-height: auto !important;
    padding: 92px 20px 112px !important;
  }

  .h-scroll-wrapper,
  .horizontal-scroll-wrapper {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  .h-slide,
  .horizontal-scroll-content {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .h-slide {
    transform: none !important;
  }

  .horizontal-scroll-content > * {
    width: 100% !important;
    min-height: auto !important;
    padding: 0 20px 34px !important;
  }

  #act3-target {
    width: 100% !important;
    padding: 36px 22px !important;
    border-radius: 20px !important;
  }

  .energy-grid,
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .energy-copy h3 {
    font-size: 34px !important;
    margin-bottom: 24px !important;
  }

  .faq-bridge {
    margin-bottom: 56px !important;
  }

  .faq-question {
    padding: 22px 20px !important;
  }

  .faq-question span:first-child {
    font-size: 18px !important;
  }

  .faq-answer {
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-size: 15px !important;
  }

  .mag-wrap {
    display: block !important;
    width: 100% !important;
    padding: 14px 0 !important;
  }

  .mag-btn {
    width: 100% !important;
    justify-content: center !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    transform: none !important;
  }

  .finale-panel-wrap {
    max-width: 320px !important;
    margin-bottom: 34px !important;
    transform: none !important;
  }

  .act5-content {
    transform: none !important;
  }

  .form-input {
    padding: 14px 16px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
  }

  #preis-modelle {
    min-height: 100svh !important;
    padding-top: 96px !important;
    padding-bottom: 40px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  #preis-modelle .max-w-5xl {
    max-width: 380px !important;
    width: 100% !important;
    height: calc(100svh - 176px) !important;
    position: relative !important;
  }

  #preis-modelle .stack-card {
    position: absolute !important;
    inset: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 30px 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    will-change: transform !important;
  }

  #preis-modelle #card-1 {
    z-index: 1 !important;
  }

  #preis-modelle #card-2 {
    z-index: 2 !important;
  }

  #preis-modelle #card-3 {
    z-index: 3 !important;
  }

  #preis-modelle .stack-card > div {
    width: 100% !important;
    gap: 28px !important;
  }

  #preis-modelle .stack-card .text-\[5rem\],
  #preis-modelle .stack-card .text-\[7rem\] {
    font-size: clamp(58px, 18vw, 82px) !important;
  }

  #preis-modelle .stack-card .text-3xl {
    font-size: clamp(26px, 7vw, 32px) !important;
  }

  #why-stack-section {
    min-height: auto !important;
    padding: 84px 0 !important;
  }

  #why-stack-section .card-layer-1,
  #why-stack-section .card-layer-2,
  #why-stack-section .card-layer-3 {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    transform: none !important;
  }

  .text-\[5rem\],
  .text-\[6rem\],
  .text-\[7rem\],
  .text-\[8rem\],
  .text-\[10rem\],
  .text-\[12rem\],
  .text-\[30rem\] {
    font-size: clamp(48px, 15vw, 72px) !important;
  }

  #res-yearly {
    font-size: inherit !important;
  }

  #ablauf {
    min-height: auto !important;
    padding-top: 86px !important;
    padding-bottom: 86px !important;
  }

  #deal-grid {
    gap: 18px !important;
  }

  .deal-card-1,
  .deal-card-2,
  .deal-card-3 {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .location-card {
    height: 320px !important;
  }

  section[class*="py-24"],
  section[class*="py-32"] {
    padding-top: 76px !important;
    padding-bottom: 76px !important;
  }

  section .rounded-\[3rem\],
  section .rounded-\[2\.5rem\] {
    border-radius: 28px !important;
  }
}

@media (max-width: 420px) {
  nav {
    padding: 14px 16px !important;
  }

  .n-logo img {
    height: 26px !important;
  }

  .a1-h1,
  .hero-title,
  body > section:first-of-type h1,
  main > section:first-of-type h1,
  h1[class*="text-[3.5rem]"],
  h1[class*="text-[4rem]"],
  h1[class*="text-[4.6rem]"],
  h1[class*="text-[5rem]"] {
    font-size: clamp(52px, 18vw, 72px) !important;
  }

  #act1 .a1-h1 {
    font-size: clamp(58px, 20vw, 82px) !important;
  }

  .p-card,
  .glass-card,
  .faq-item,
  .trust-values,
  .energy-copy {
    padding: 24px 18px !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .p-card,
  .glass-card,
  .location-card,
  .calc-option,
  .btn-primary,
  .btn-secondary,
  .mag-btn,
  a,
  button {
    transition-duration: 0.18s !important;
  }

  .p-card:hover,
  .glass-card:hover,
  .location-card:hover,
  .calc-option:hover {
    transform: none !important;
  }
}

@media (max-width: 767px) {
  #horizontal-section {
    padding-top: 84px !important;
    padding-bottom: 0 !important;
  }

  #horizontal-section .max-w-7xl {
    margin-bottom: 32px !important;
    text-align: center;
  }

  #horizontal-section .values-headline {
    font-size: clamp(40px, 12vw, 56px) !important;
    line-height: 1 !important;
  }

  #horizontal-section .horizontal-scroll-wrapper {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100svh !important;
    overflow: hidden !important;
    transform: none !important;
  }

  #horizontal-section .horizontal-scroll-content {
    display: flex !important;
    width: 300vw !important;
    height: 100% !important;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  #horizontal-section .horizontal-scroll-content > * {
    width: 100vw !important;
    min-height: 100svh !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 92px 24px 72px !important;
  }

  #horizontal-section .horizontal-scroll-content > * > div {
    max-width: 340px !important;
    gap: 16px !important;
    text-align: center !important;
  }

  #horizontal-section .horizontal-scroll-content .text-\[12rem\] {
    font-size: clamp(82px, 32vw, 132px) !important;
    line-height: 0.82 !important;
  }

  #horizontal-section h3 {
    font-size: clamp(30px, 9vw, 40px) !important;
    line-height: 1.06 !important;
    margin-bottom: 16px !important;
  }

  #horizontal-section p {
    font-size: 17px !important;
    line-height: 1.62 !important;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  #act3.horizontal-section .h-slide-card {
    display: none !important;
  }

  #act3.horizontal-section {
    padding-bottom: 92px !important;
  }

  #act4-trust {
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 28px !important;
    padding: 104px 20px 72px !important;
    overflow: hidden !important;
  }

  #act4-trust .trust-content {
    will-change: transform, opacity, filter;
  }

  #act4-trust .trust-label {
    margin-bottom: 26px !important;
  }

  #act4-trust .trust-h2 {
    margin-bottom: 22px !important;
  }

  #act4-trust .trust-p {
    max-width: 34rem;
    margin-bottom: 0 !important;
  }

  #act4-trust .trust-values {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 14px !important;
    transform-origin: center center;
    will-change: transform, opacity;
  }

  #act4-trust .t-val {
    justify-content: flex-start !important;
    text-align: left;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
}
