@media (max-width: 1248px) {
  .header-inner {
    justify-content: space-between;
    gap: 16px;
  }

  .header-nav,
  .header-phone {
    display: none;
  }

  .header-contact {
    min-width: 0;
    height: auto;
    padding: 0;
    background: transparent;
  }

  .header-right {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-menu-toggle--close,
  body.has-mobile-menu-open .mobile-menu-toggle--open {
    display: none;
  }

  body.has-mobile-menu-open .mobile-menu-toggle--close {
    display: inline-flex;
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .calculator-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .calculator-grid .calc-step:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 420px;
    justify-self: end;
  }

  .calculator-result {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  .calculator .section-heading h2 {
    font-size: clamp(28px, 5vw, 34px);
  }

  .calculator-grid,
  .calculator-result {
    grid-template-columns: 1fr;
  }

  .calculator-grid {
    gap: 26px;
  }

  .calc-step__title {
    font-size: 18px;
  }

  .calc-visual {
    grid-template-columns: minmax(132px, 0.9fr) minmax(160px, 1fr);
    gap: 12px;
    align-items: start;
  }

  .calc-visual__image-wrap {
    min-height: 276px;
    align-items: end;
  }

  .calc-visual__image-wrap img {
    width: auto;
    max-width: 100%;
    height: 274px;
    max-height: 274px;
  }

  .height-panel {
    gap: 14px;
    font-size: 15px;
  }

  .height-panel small {
    font-size: 10px;
    line-height: 1.25;
  }

  .calculator-result {
    gap: 14px;
  }

  .calculator-result__product,
  .calculator-result__price {
    min-height: 140px;
  }

  .calculator-result__headline {
    gap: 10px;
  }

  .calculator-send {
    padding-inline: 12px;
  }

  .calculator-result__tiers span {
    padding-inline: 8px;
  }

  .calculator-result__tiers b {
    font-size: 17px;
  }

  .calculator-result__details {
    grid-template-columns: 150px 1fr;
  }

  .calculator-result__price strong {
    font-size: 38px;
  }

  .city-map {
    aspect-ratio: auto;
    min-height: auto;
    padding-bottom: 22px;
  }

  .city-map img {
    height: auto;
  }

  .city-tabs {
    position: static;
    padding: 22px 18px 0;
  }

  .city-tab {
    min-width: 142px;
    height: 44px;
    font-size: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gallery-grid {
    --gallery-item-height: 440px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-card {
    min-height: auto;
    padding: 34px 24px;
  }

  .footer-inner {
    width: min(100%, 560px);
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-divider {
    width: 72px;
    height: 1px;
  }

  .footer-legal,
  .footer-legal__links {
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .contact-visual--map {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 0;
  }

  body.has-mobile-menu-open main {
    margin-top: 442px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    box-shadow: none;
  }

  .header-inner {
    height: 70px;
    justify-content: space-between;
    gap: 12px;
  }

  .header-logo {
    min-width: 193px;
    height: 50px;
    gap: 10px;
  }

  .header-logo img {
    width: 63px;
  }

  .header-logo span {
    max-width: 120px;
    font-size: 20px;
  }

  .header-right {
    height: 50px;
    gap: 12px;
    margin-left: auto;
  }

  .header-contact {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .header-whatsapp {
    min-width: 50px;
    max-width: 50px;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    flex: 0 0 50px;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .header-whatsapp img {
    width: 24px;
    height: 24px;
    pointer-events: none;
  }

  .header-whatsapp span {
    display: none;
  }

  .mobile-menu-toggle {
    width: 50px;
    height: 50px;
  }

  .mobile-menu {
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 990;
    pointer-events: none;
  }

  .mobile-menu__top {
    display: none;
  }

  .mobile-menu__overlay {
    background: transparent;
    pointer-events: auto;
  }

  .mobile-menu__panel {
    top: 0;
    right: 24px;
    left: 24px;
    z-index: 1;
    width: auto;
    height: auto;
    padding: 24px 5px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: none;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 24px;
    pointer-events: auto;
  }

  .mobile-menu__phone {
    width: min(100%, 300px);
    min-height: 50px;
    padding: 0 10px;
    border-radius: var(--radius-lg);
    background: var(--color-pill-inactive);
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.2;
  }

  .mobile-menu__links {
    width: min(100%, 300px);
    gap: 24px;
  }

  .mobile-menu__link {
    min-height: 50px;
    width: 100%;
    padding: 0 10px;
    border-radius: var(--radius-lg);
    font-size: 20px;
  }

  .has-mobile-menu-open .sticky-mobile-cta {
    display: none;
  }

  .grid-desktop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .section {
    padding: 42px 0;
  }

  .hero {
    padding: 42px 0 26px;
  }

  .hero-copy,
  .hero-copy--wide,
  .hero-media {
    grid-column: 1 / -1;
  }

  .hero-copy {
    gap: 22px;
  }

  .hero-actions,
  .eyebrow-line {
    display: grid;
    justify-items: stretch;
  }

  .eyebrow-line {
    gap: 10px;
    justify-content: start;
    text-align: left;
  }

  .eyebrow-line span {
    padding-left: 14px;
    border-left: 2px solid var(--color-deep-orange);
  }

  .eyebrow-line span + span::before {
    display: none;
  }

  .two-column,
  .calculator-grid,
  .calculator-result,
  .standorte-intro,
  .city-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .calculator-grid {
    gap: 26px;
  }

  .calc-visual {
    grid-template-columns: minmax(132px, 0.9fr) minmax(160px, 1fr);
    gap: 12px;
    align-items: start;
  }

  .calc-visual__image-wrap {
    min-height: 276px;
    align-items: end;
  }

  .calc-visual__image-wrap img {
    width: auto;
    max-width: 100%;
    height: 274px;
    max-height: 274px;
  }

  .height-panel {
    gap: 14px;
    font-size: 15px;
  }

  .height-panel__legend {
    font-size: 10px;
    line-height: 1.25;
  }

  .calculator-result {
    gap: 14px;
  }

  .calculator-result__product,
  .calculator-result__price {
    min-height: 140px;
  }

  .calculator-result__headline {
    gap: 10px;
  }

  .calculator-send {
    padding-inline: 12px;
  }

  .calculator-result__tiers span {
    padding-inline: 8px;
  }

  .calculator-result__tiers b {
    font-size: 17px;
  }

  .calculator-result__details {
    grid-template-columns: 150px 1fr;
  }

  .calculator-result__price strong {
    font-size: 38px;
  }

  .process-grid,
  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    --gallery-item-height: 380px;
    gap: 16px;
  }

  .service-card {
    min-height: 260px;
  }

  .cta-band {
    display: grid;
    padding: 28px 24px 110px;
  }

  .cta-band img {
    width: 108px;
  }

  .kaufen-countdown {
    width: 100%;
  }

  .kaufen-availability {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .kaufen-actions {
    align-content: start;
  }

  .page-kaufen .hero-copy,
  .page-kaufen .hero-media,
  .page-kaufen .kaufen-availability,
  .page-kaufen .kaufen-actions,
  .page-kaufen .kaufen-countdown {
    width: 100%;
    justify-self: stretch;
  }

  .page-kaufen .kaufen-countdown {
    padding-inline: 18px;
  }

  .page-kaufen .kaufen-countdown__numbers {
    gap: 8px;
  }

  .page-kaufen .kaufen-countdown__numbers strong {
    font-size: 28px;
  }

  .page-kaufen .kaufen-countdown__numbers span {
    font-size: 12px;
  }

  .contact-visual--map {
    aspect-ratio: 582 / 519;
  }

  .page-kontakt .contact-grid {
    margin-bottom: 0;
  }

  .page-kontakt .contact-card,
  .page-kontakt .contact-visual {
    width: 100%;
    justify-self: stretch;
  }

  .benefit-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .standorte-cta {
    padding: 230px 24px 28px;
  }

  .standorte-cta > img {
    left: 50%;
    top: 20px;
    bottom: auto;
    width: 180px;
    transform: translateX(-50%);
  }

  .footer-card {
    padding: 28px 20px;
    min-height: auto;
  }

  .footer-inner {
    width: min(100%, 420px);
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-divider {
    width: 72px;
    height: 1px;
  }

  .footer-legal,
  .footer-legal__links {
    justify-content: center;
    text-align: center;
  }

  .sticky-mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 990;
    min-height: 54px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .sticky-mobile-cta a,
  .sticky-mobile-cta button {
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-deep-orange);
    color: var(--text-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
  }

  .sticky-mobile-cta a:nth-child(2) {
    background: var(--color-whatsapp);
  }

  .sticky-mobile-cta button {
    background: var(--color-graphite);
  }
}

@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
  body {
    padding-bottom: 0;
  }

  .sticky-mobile-cta {
    display: none;
  }
}

@media (max-width: 420px) {
  .benefit-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 374px) {
  :root {
    --container-padding: 16px;
  }

  #CybotCookiebotDialog .CybotCookiebotDialogContentWrapper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }

  .calculator-select select {
    padding-left: 14px;
    padding-right: 36px;
    font-size: 14px;
  }

  .calculator-select__icon {
    right: 8px;
    width: 20px;
    height: 20px;
  }

  .header-inner,
  .header-right {
    gap: 8px;
  }

  .header-logo {
    min-width: 164px;
  }

  .header-logo img {
    width: 54px;
  }

  .header-logo span {
    max-width: 100px;
    font-size: 17px;
  }

  .header-contact,
  .header-whatsapp,
  .mobile-menu-toggle {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
    min-width: 45px;
    max-width: 45px;
  }

  .header-whatsapp img {
    width: 22px;
    height: 22px;
  }

  .mobile-menu-toggle span,
  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
    width: 25px;
  }

  .mobile-menu__panel {
    right: 16px;
    left: 16px;
  }

  .contact-card {
    padding: 24px 18px;
    gap: 22px;
    min-width: 0;
  }

  .contact-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    overflow-wrap: anywhere;
  }

  .contact-row img {
    width: 42px;
    height: 42px;
  }

  .contact-visual {
    min-width: 0;
  }

  .city-tabs {
    gap: 10px;
    padding-inline: 14px;
  }

  .city-tab {
    min-width: 124px;
    height: 42px;
    font-size: 15px;
  }

  .calc-visual,
  .calculator-result__tiers {
    grid-template-columns: 1fr;
  }

  .calc-step__title {
    gap: 10px;
    font-size: 17px;
    line-height: 1.15;
  }

  .calc-step__number {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .calc-visual__image-wrap {
    min-height: auto;
  }

  .calc-visual__image-wrap img {
    width: auto;
    max-width: 100%;
    height: 274px;
    max-height: 274px;
  }

  .calculator-result {
    padding: 18px;
  }

  .calculator-result__tiers span {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid rgba(66, 66, 66, 0.28);
  }

  .calculator-result__tiers span:last-child {
    border-bottom: 0;
  }

  .calculator-result__details {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .calculator-result__details span {
    display: grid;
  }
}
