/**
 * ELBSCHLÖSSCHEN — Responsive Layout
 * Mobile-first overrides for all lp-v2 sections
 */

/* ─── Mobile Nav Toggle (hidden on desktop) ─── */
.lp-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent !important;
  background-color: transparent !important;
  cursor: pointer;
}

.lp-nav__toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.lp-nav.is-scrolled .lp-nav__toggle {
  border-color: rgba(22, 40, 56, .2);
}

.lp-nav.is-open .lp-nav__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.lp-nav.is-open .lp-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.lp-nav.is-open .lp-nav__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

/* ─── Large Desktop (1400px+) ─── */
@media (min-width: 1400px) {
  .lp-hero__content {
    margin-left: clamp(80px, 8vw, 140px);
  }
}

/* ─── Tablet Landscape (max 1199px) ─── */
@media (max-width: 1199px) {
  .lp-v2 .lp-intro {
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    width: min(1188px, calc(100% - 48px)) !important;
    padding-top: 120px !important;
    padding-bottom: 100px !important;
  }

  .lp-v2 .lp-intro h2 {
    font-size: clamp(34px, 4vw, 46px) !important;
  }

  .lp-v2 .lp-intro .lp-lead {
    margin-top: 24px !important;
  }

  .lp-benefits {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 180px);
  }

  .lp-benefits article {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 180px);
  }

  .lp-band > div {
    margin-left: clamp(28px, 10vw, 200px);
  }
}

/* ─── Tablet (max 1050px) — Nav + Layout ─── */
@media (max-width: 1050px) {
  .lp-nav {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 0 20px;
  }

  .lp-nav__toggle {
    display: flex;
    justify-self: end;
  }

  .lp-nav__links {
    display: none;
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    background: rgba(20, 40, 56, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
  }

  .lp-nav.is-scrolled .lp-nav__links {
    background: rgba(255, 255, 255, .98);
    border-bottom-color: var(--lp-line);
  }

  .lp-nav.is-open .lp-nav__links {
    display: flex;
  }

  .lp-nav__links a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 10px;
    letter-spacing: .2em;
  }

  .lp-nav.is-scrolled .lp-nav__links a {
    border-bottom-color: var(--lp-line);
  }

  .lp-nav__cta {
    padding: 14px 16px;
    font-size: 9px !important;
    letter-spacing: .18em;
    white-space: nowrap;
  }
}

/* ─── Tablet (max 991px) ─── */
@media (max-width: 991px) {
  .lp-hero {
    min-height: min(100vh, 900px);
  }

  .lp-hero__content {
    width: calc(100% - 40px);
    margin: 0 0 clamp(36px, 6vh, 72px) 20px;
  }

  .lp-hero h1 {
    font-size: clamp(44px, 8vw, 72px);
  }

  .lp-kicker {
    margin-bottom: 24px;
    font-size: 9px;
    letter-spacing: .28em;
    line-height: 1.6;
  }

  .lp-stats {
    flex-wrap: wrap;
    min-height: auto;
  }

  .lp-stats article {
    flex: 1 1 50%;
    min-width: min(100%, 280px);
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .lp-stats article:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .12);
  }

  .lp-v2 .lp-intro {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-top: 90px !important;
    padding-bottom: 80px !important;
  }

  .lp-v2 .lp-intro .lp-lead {
    margin-top: 0 !important;
    max-width: none !important;
  }

  .lp-nowrap {
    white-space: normal;
  }

  .lp-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-split > img {
    max-width: 480px;
    margin: 0 auto;
  }

  .lp-soft__content {
    height: auto;
    max-width: none;
  }

  .lp-features {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 24px 16px;
    margin-top: 28px;
  }

  .lp-gallery,
  .lp-gallery--large {
    grid-template-columns: 1fr;
  }

  .lp-gallery img {
    height: clamp(240px, 45vw, 400px);
  }

  .lp-reasons,
  .lp-step-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .lp-band,
  .lp-object-hero {
    min-height: 420px;
  }

  .lp-band > div,
  .lp-object-hero > div {
    margin-left: 24px;
    width: calc(100% - 48px);
  }

  .lp-calculator {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
  }

  .lp-calculator__panel {
    min-height: auto;
  }

  .lp-calculator__form,
  .lp-calculator__result {
    padding: 40px 28px;
  }

  .lp-object {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-location {
    grid-template-columns: 1fr;
  }

  .lp-location__media,
  .lp-location__media img {
    min-height: 360px;
    height: auto;
  }

  .lp-steps {
    grid-template-columns: 1fr;
  }

  .lp-steps__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lp-steps__lead {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .lp-steps .lp-step-grid h3 {
    white-space: normal;
  }

  .lp-contact {
    grid-template-columns: 1fr;
  }

  .lp-contact__image {
    min-height: 420px;
  }

  .lp-contact__form {
    padding: 48px 28px 64px;
  }

  .lp-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 24px;
  }
}

/* ─── Mobile (max 767px) ─── */
@media (max-width: 767px) {
  .lp-nav {
    height: 72px;
  }

  .lp-nav__links {
    top: 72px;
  }

  .lp-brand {
    font-size: 8px !important;
    letter-spacing: .18em !important;
    line-height: 1.4;
  }

  .lp-brand img {
    height: 58px;
    max-width: 240px;
  }

  .lp-brand span {
    display: block;
    padding-left: 0;
    opacity: .7;
  }

  .lp-hero {
    min-height: 100svh;
    align-items: flex-end;
  }

  .lp-hero__shade {
    background:
      linear-gradient(180deg, rgba(20, 24, 27, .35) 0%, rgba(20, 24, 27, .15) 40%, rgba(20, 24, 27, .55) 100%),
      linear-gradient(90deg, rgba(20, 24, 27, .5), rgba(20, 24, 27, .2));
  }

  .lp-hero h1 {
    font-size: clamp(36px, 11vw, 52px);
    line-height: .96;
    margin-bottom: 20px;
  }

  .lp-hero-line {
    white-space: nowrap;
  }

  .lp-segments {
    display: flex;
    width: 100%;
    max-width: 320px;
  }

  .lp-segments button {
    flex: 1 1 50%;
    min-width: 0;
    padding: 10px 8px;
    font-size: 8px;
    letter-spacing: .16em;
  }

  .lp-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .lp-hero__actions .lp-button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    font-size: 9px;
    letter-spacing: .22em;
  }

  .lp-hero__actions .lp-more {
    align-self: center;
  }

  .lp-stats article {
    flex: 1 1 100%;
    border-right: 0 !important;
    padding: 24px 20px;
  }

  .lp-stats strong {
    font-size: 26px;
  }

  .lp-section {
    width: calc(100% - 32px);
    padding: 64px 0;
  }

  .lp-section h2,
  .lp-statement h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .lp-statement {
    width: calc(100% - 32px);
    padding: 80px 0 48px;
  }

  .lp-benefits {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .lp-benefits article {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .lp-benefits .lp-num {
    grid-row: 1;
    font-size: 28px;
  }

  .lp-benefits .lp-eyebrow {
    grid-row: 2;
  }

  .lp-benefits h3 {
    grid-row: 3;
    font-size: 20px;
  }

  .lp-benefits p:not(.lp-eyebrow) {
    grid-row: 4;
  }

  .lp-benefits strong {
    grid-row: 5;
    grid-column: 1;
    justify-self: start;
    font-size: 28px;
    margin-top: 8px;
  }

  .lp-soft {
    padding: 56px 16px;
  }

  .lp-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .lp-reasons,
  .lp-step-grid {
    width: calc(100% - 32px);
    margin: 48px auto 80px;
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .lp-band h2,
  .lp-object-hero h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .lp-band .lp-button {
    width: 100%;
    justify-content: center;
  }

  .lp-calculator {
    width: calc(100% - 32px);
  }

  .lp-calculator__form,
  .lp-calculator__result {
    padding: 32px 20px;
  }

  .lp-calculator h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .lp-object-tabs {
    gap: 16px;
  }

  .lp-object-tabs button {
    font-size: 8px;
    letter-spacing: .22em;
    padding-bottom: 12px;
  }

  .lp-object th,
  .lp-object td {
    padding: 16px 8px 16px 0;
    font-size: 12px;
  }

  .lp-location__content {
    padding: 40px 24px;
  }

  .lp-location h2 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .lp-location dl div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .lp-steps__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-steps__actions .lp-button {
    width: 100%;
    justify-content: center;
  }

  .lp-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lp-contact__image {
    min-height: 360px;
  }

  .lp-contact__image > div {
    left: 20px;
    bottom: 40px;
  }

  .lp-contact__form h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .lp-footer strong,
  .lp-footer a {
    margin-right: 16px;
    margin-bottom: 8px;
    font-size: 10px;
  }

  .lp-footer span {
    font-size: 12px;
    line-height: 1.6;
  }
}

/* ─── Small Mobile (max 479px) ─── */
@media (max-width: 479px) {
  .lp-nav__cta {
    padding: 12px 10px;
    font-size: 8px !important;
  }

  .lp-hero h1 {
    font-size: clamp(32px, 10.5vw, 44px);
  }

  .lp-segments {
    max-width: 100%;
  }

  .lp-segments button {
    font-size: 7px;
    letter-spacing: .12em;
    height: 34px;
  }

  .lp-kicker {
    font-size: 8px;
    letter-spacing: .2em;
  }

  .lp-stats strong {
    font-size: 22px;
  }

  .lp-v2 .lp-intro h2 {
    font-size: clamp(28px, 9vw, 34px) !important;
  }

  .lp-feature__icon {
    width: 36px;
    height: 36px;
  }

  .lp-features small,
  .lp-feature small {
    font-size: 9px;
  }
}

/* ─── Landscape phones ─── */
@media (max-height: 500px) and (orientation: landscape) {
  .lp-hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .lp-hero__content {
    margin-bottom: 24px;
  }

  .lp-hero h1 {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 16px;
  }

  .lp-nav__links {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
}
