@import url("navigation.css");

.bp-legacy {
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.55 Montserrat, system-ui, sans-serif;
}

.bp-legacy > .container {
  max-width: none;
  min-height: calc(100svh - 92px);
  padding: 0;
  border: 0;
  box-shadow: none;
}

.bp-legacy > .background-image { display: none; }
.bp-legacy .brand img { display: block; max-width: none; }
.bp-legacy .header-contact .icon,
.bp-legacy .header-mobile .icon,
.bp-subpage .mobile-dock .icon { margin: 0; }
.bp-subpage .mobile-dock { font-family: Montserrat, system-ui, sans-serif; }

.bp-legacy :focus-visible,
.bp-subpage .mobile-dock a:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
}

.bp-legacy .skip-link {
  position: absolute;
  z-index: 50;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  text-decoration: underline;
}

.bp-legacy .skip-link:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}

.bp-legacy #inhalt:focus { outline: none; }
.bp-legacy .container > :is(.hm-page, .kf-page) {
  width: min(calc(100% - 72px), 1180px);
  min-width: 0;
  margin: 0 auto;
  padding: 0;
}

.bp-legacy .hm-page:not(.upload-page) {
  --hm-primary: var(--blue);
  --hm-primary-dark: var(--hover);
  --hm-navy: var(--navy);
  --hm-text: var(--ink);
  --hm-text-muted: var(--ink);
  --hm-border: var(--line);
  --hm-bg: var(--wash);
  --hm-radius: var(--radius);
  --hm-shadow: 0 10px 24px rgb(2 26 105 / .08);
}

.bp-legacy .hm-page:not(.upload-page) > .hm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin: 0 0 clamp(24px, 4.8vw, 52px);
  padding: clamp(34px, 6vw, 75px) 0 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.bp-legacy .hm-page:not(.upload-page) > .hm-hero:has(.hm-hero-photo) {
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
}

.bp-legacy .hm-hero > * { min-width: 0; }
.bp-legacy .hm-hero .hm-hero-eyebrow {
  color: var(--blue);
  margin: 0 0 13px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.bp-legacy .hm-page:not(.upload-page) .hm-hero h1 {
  color: var(--navy);
  font-size: clamp(2.25rem, 5.1vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -.068em;
  font-weight: 800;
  margin: 0 0 16px;
  overflow-wrap: break-word;
}

.bp-legacy .hm-hero .hm-hero-sub {
  max-width: 62ch;
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.62;
}

.bp-legacy .hm-hero-photo {
  display: block;
  width: 100%;
  align-self: center;
  border: 0;
  border-bottom: 10px solid var(--burgundy);
  border-radius: var(--radius);
  overflow: hidden;
}

.bp-legacy .hm-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.43;
  object-fit: cover;
  box-shadow: none;
  border-radius: 0;
}

.bp-legacy[data-bp-page="kanzlei"] .hm-hero-photo img { object-position: center 31%; }
.bp-legacy .hm-hero-ctas { gap: 8px 12px; }
.bp-legacy .hm-page:not(.upload-page) :is(h2, .mandanten-subheading) {
  color: var(--navy);
  font-size: clamp(1.5rem, 3.15vw, 2.2rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -.036em;
}

.bp-legacy .hm-page :is(.hm-btn, .svc-btn) {
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.32;
  text-decoration: none;
}

.bp-legacy .hm-page :is(.hm-btn-primary, .svc-btn-primary) {
  border-color: transparent;
  color: #fff;
  background: var(--blue);
}

.bp-legacy .hm-page :is(.hm-btn-primary, .svc-btn-primary):hover {
  background: var(--hover);
  color: #fff;
  box-shadow: none;
  transform: none;
}

.bp-legacy .hm-page :is(.hm-btn-ghost, .svc-btn:not(.svc-btn-primary)) {
  border: 1px solid var(--line);
  color: var(--blue);
  background: #fff;
}

.bp-legacy .hm-page :is(.hm-btn-ghost, .svc-btn:not(.svc-btn-primary)):hover { background: var(--wash); }

.bp-legacy .hm-page :is(.app-tile, .svc-card, .svc-angebot, .hm-location-card, .hm-map-card,
  .hm-content-main, .hm-content-side, .historie-card, .partner-card, .hm-success-card) {
  border-radius: var(--radius);
  border-color: var(--line);
  box-shadow: none;
}

.bp-legacy .hm-page :is(.app-tile, .svc-card, .hm-location-card, .historie-card, .partner-card) { background: #fff; }
.bp-legacy .hm-page :is(.svc-card, .app-tile, .hm-location-card) { padding: clamp(15px, 2.1vw, 26px); }
.bp-legacy .hm-page .app-tile:hover { background: var(--wash); border-color: var(--blue); transform: none; }
.bp-legacy .hm-page :is(.app-tile-icon, .svc-icon) {
  background: var(--wash);
  color: var(--blue);
  border-radius: 13px;
}

.bp-legacy .hm-page :is(.app-tile-title, .svc-card h3) { color: var(--navy); font-size: 1.05rem; line-height: 1.3; font-weight: 800; }
.bp-legacy .hm-page :is(.app-tile-text, .svc-card p) { color: var(--ink); font-size: .9rem; line-height: 1.55; }
.bp-legacy .hm-page .svc-angebot { background: var(--wash); }
.bp-legacy .hm-page .mandanten-subheading { padding-top: 10px; border-bottom-color: var(--line); }
.bp-legacy .hm-page .partner-card-photo-wrap { background: var(--wash); }

.bp-legacy .hm-page .leistungen-flip-grid { row-gap: clamp(20px, 4vw, 44px); }
.bp-legacy .hm-page .flip-category-label {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}
.bp-legacy .hm-page .flip-tile-front { border-radius: var(--radius); border-color: var(--line); box-shadow: none; }
.bp-legacy .hm-page .flip-tile-back { border-radius: var(--radius); background: var(--blue); color: #fff; box-shadow: none; }
.bp-legacy .hm-page .flip-tile-title { color: #fff; font-size: .94rem; }
.bp-legacy .hm-page .flip-tile-back-text { color: #fff; font-size: .88rem; }
.bp-legacy .hm-page .flip-tile-icon { color: var(--blue); background: var(--wash); }

.bp-legacy .hm-page :is(.hm-location-card, .hm-content-side, .hm-success-card) { background: var(--wash); }
.bp-legacy .hm-page .hm-map-card { overflow: hidden; }
.bp-legacy .hm-page :is(.svc-rechner-intro, .svc-rechner-panel, .svc-rechner-result) {
  border-radius: var(--radius);
  border-color: var(--line);
  box-shadow: none;
}

.bp-legacy .hm-page .svc-rechner-intro {
  padding: clamp(24px, 5vw, 58px) 0 8px;
  background: #fff;
  border: 0;
}

.bp-legacy .hm-page .svc-rechner-intro h1 {
  min-width: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 5.1vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -.064em;
  font-weight: 800;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.bp-legacy .hm-page .svc-rechner-panel { background: var(--wash); }
.bp-legacy .hm-page .svc-rechner-result :is(h2, .svc-rechner-result-eyebrow) { color: #fff; }
.bp-legacy .hm-page .hm-legal-content {
  width: 100%;
  max-width: 78ch;
  margin-inline: 0;
  color: var(--ink);
  font: 400 1rem/1.68 Montserrat, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.bp-legacy .hm-legal-content a { color: var(--blue); }

.bp-legacy .footer-wrapper {
  width: 100%;
  margin-top: clamp(35px, 6vw, 82px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.bp-legacy .footer {
  width: min(calc(100% - 72px), 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  padding: clamp(22px, 4vw, 45px) 0;
  background: #fff;
  color: var(--ink);
}

.bp-legacy .footer-block, .bp-legacy .footer-top { width: auto; margin: 0; padding: 0; border: 0; }
.bp-legacy .footer-top {
  margin: 0 0 6px;
  color: var(--navy);
  font: 800 .95rem/1.4 Montserrat, system-ui, sans-serif;
}
.bp-legacy .footer-link, .bp-legacy .footer-copyright {
  width: fit-content;
  min-height: 32px;
  margin: 0;
  padding-block: 5px;
  color: var(--blue);
  font: 600 .83rem/1.5 Montserrat, system-ui, sans-serif;
  text-underline-offset: 3px;
}
.bp-legacy .footer-link.w--current { margin: 0; text-decoration: underline; }
.bp-legacy .footer-copyright { color: var(--ink); font-weight: 400; }
.bp-legacy .form-container { border-radius: 22px; }
.bp-legacy .fs-cc-manager_button { border-radius: 100px; }

@media (max-height: 700px) and (min-width: 768px) {
  .bp-legacy .form-wrapper {
    align-items: center;
    padding: 12px;
  }

  .bp-legacy .form-container {
    position: relative;
    inset: auto;
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 780px) {
  .bp-legacy > .container { min-height: calc(100svh - 145px); }
  .bp-legacy .container > :is(.hm-page, .kf-page), .bp-legacy .footer { width: min(calc(100% - 32px), 520px); }
  .bp-legacy .hm-page:not(.upload-page) > .hm-hero {
    padding-top: 25px;
    margin-bottom: 24px;
    gap: 17px;
  }
  .bp-legacy .hm-page:not(.upload-page) > .hm-hero:has(.hm-hero-photo) { grid-template-columns: minmax(0, 1fr); }
  .bp-legacy .hm-page:not(.upload-page) .hm-hero h1,
  .bp-legacy .hm-page .svc-rechner-intro h1 { font-size: clamp(2rem, 8.4vw, 3.35rem); }
  .bp-legacy .hm-hero-photo { border-radius: 21px; border-bottom-width: 7px; }
  .bp-legacy .hm-hero-photo img { aspect-ratio: 1.65; }
  .bp-legacy .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .bp-legacy .footer-link, .bp-legacy .footer-copyright { min-height: 36px; }
  .bp-legacy .fs-cc-manager_component { bottom: calc(72px + env(safe-area-inset-bottom)); left: 10px; }
}

@media (max-width: 350px) {
  .bp-legacy .footer { grid-template-columns: minmax(0, 1fr); }
}
