/* Gemeinsames LP-Chrome: Header (weiß + Logo) + Footer — Farben: lp-brand.css */

@import url("lp-brand.css");
@import url("lp-contact-modal.css");

/* Nur Tastatur/Screenreader: Tab-Fokus springt zum Hauptinhalt (#inhalt). */
.lp-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lp-skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10001;
  width: auto;
  height: auto;
  overflow: visible;
  background: #fff;
  color: var(--bdsf-blue);
  padding: 9px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 24, 80, 0.18);
  font-weight: 700;
  text-decoration: none;
}

:root {
  /* Seiten-Nav (nur mit .lp-site-header--with-nav): einheitlich wie sv-werden2/.nav */
  --lp-header-nav-link: #636160;
  --lp-header-nav-link-hover: var(--bdsf-blue);
  --lp-header-nav-separator: #636160;
  --lp-header-nav-mobile-link: #00234c;
  --lp-header-inner-max: 1120px;

  --lp-footer-bg: var(--bdsf-blue-dark);
  --lp-footer-text: rgba(255, 255, 255, 0.62);
  --lp-footer-text-muted: rgba(255, 255, 255, 0.45);
  --lp-footer-heading: #fff;
  --lp-footer-border: rgba(255, 255, 255, 0.13);
  --lp-footer-link-hover: var(--bdsf-gold);
  --lp-footer-inner-max: 1120px;
}

.lp-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--bdsf-blue);
  border-bottom: 1px solid rgba(0, 55, 98, 0.12);
  transition: box-shadow 0.3s ease;
}

.lp-site-header.is-stuck {
  box-shadow: 0 4px 22px rgba(0, 24, 80, 0.12);
}

.lp-site-header__shell {
  width: 100%;
  max-width: var(--lp-header-inner-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 2.4vw, 36px);
}

.lp-site-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  column-gap: clamp(12px, 1.6vw, 24px);
  row-gap: clamp(4px, 0.5vw, 8px);
  align-items: center;
  padding-block: 10px 8px;
}

.lp-site-header--with-nav .lp-site-header__grid {
  grid-template-rows: auto auto;
}

.lp-site-header__brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 0;
  text-decoration: none;
}

.lp-site-header__logo {
  display: block;
  width: auto;
  height: clamp(52px, 4.8vw, 85px);
  max-width: none;
  max-height: 85px;
  object-fit: contain;
  object-position: left center;
}

.lp-site-header__claim {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  opacity: 0.56;
  line-height: 1.35;
  max-width: min(280px, 32vw);
  font-size: clamp(11px, 0.95vw, 14px);
}

.lp-site-header__claim-ico {
  width: clamp(22px, 2vw, 32px);
  flex: none;
}

.lp-site-header__claim-ico path:first-of-type {
  stroke: var(--bdsf-blue);
}

.lp-site-header__claim-ico path:last-of-type {
  stroke: var(--bdsf-gold);
}

.lp-site-header__claim b {
  display: block;
  font-weight: 700;
  font-size: clamp(14px, 1.25vw, 18px);
  color: #000005;
}

.lp-site-header__claim > span > span {
  display: block;
  color: rgba(0, 55, 98, 0.72);
}

.lp-site-header--with-nav .lp-site-header__burger {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 55, 98, 0.15);
  border-radius: 3px;
  cursor: pointer;
  place-items: center;
  background: #fff;
}

.lp-site-header__burger i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bdsf-blue);
  position: relative;
}

.lp-site-header__burger i::before,
.lp-site-header__burger i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--bdsf-blue);
  transition: transform 0.28s ease, top 0.2s;
}

.lp-site-header__burger i::before {
  top: -7px;
}

.lp-site-header__burger i::after {
  top: 7px;
}

.lp-site-header__burger[aria-expanded="true"] i {
  background: transparent;
}

.lp-site-header__burger[aria-expanded="true"] i::before {
  top: 0;
  transform: rotate(45deg);
}

.lp-site-header__burger[aria-expanded="true"] i::after {
  top: 0;
  transform: rotate(-45deg);
}

.lp-site-header--with-nav .lp-site-header__nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.lp-site-header__nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-site-header__nav a {
  display: block;
  position: relative;
  text-decoration: none;
  font-weight: 700;
  color: var(--lp-header-nav-link);
  font-size: clamp(14px, 1.25vw, 18.8px);
  padding: 6px clamp(10px, 1vw, 15px);
  white-space: nowrap;
  transition: color 0.2s ease;
  font-family: var(--lp-font-sans, "Inter", "Roboto", "Segoe UI", sans-serif);
}

.lp-site-header__nav a[aria-current="true"] {
  color: var(--lp-header-nav-link);
}

.lp-site-header__nav li + li a::before {
  content: "|";
  position: absolute;
  left: -3px;
  color: var(--lp-header-nav-separator);
  opacity: 0.6;
  font-weight: 400;
}

.lp-site-header__nav a::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 2px;
  background: var(--bdsf-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.lp-site-header__nav a:hover {
  color: var(--lp-header-nav-link-hover);
}

.lp-site-header__nav a:hover::after,
.lp-site-header__nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

@media (max-width: 1180px) {
  .lp-site-header__claim {
    display: none;
  }
}

@media (max-width: 900px) {
  .lp-site-header__grid {
    grid-template-columns: 1fr auto;
  }

  .lp-site-header--with-nav .lp-site-header__grid {
    grid-template-rows: auto auto;
  }

  .lp-site-header__logo {
    height: auto;
    max-height: 52px;
    max-width: min(394px, calc(100vw - 88px));
  }

  .lp-site-header__claim {
    display: none;
  }

  .lp-site-header--with-nav .lp-site-header__burger {
    display: grid;
    position: relative;
    z-index: 3;
  }

  /* Spezifität wie Desktop-Nav — sonst bleibt display:flex, 0fr-/is-open greift nicht (Hamburger „tot“). */
  .lp-site-header--with-nav .lp-site-header__nav {
    display: grid;
    grid-template-rows: 0fr;
    justify-content: stretch;
    width: 100%;
    transition: grid-template-rows 0.3s ease;
  }

  .lp-site-header--with-nav .lp-site-header__nav.is-open {
    grid-template-rows: 1fr;
  }

  .lp-site-header--with-nav .lp-site-header__nav > ul {
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    justify-content: flex-start;
  }

  .lp-site-header--with-nav .lp-site-header__nav a {
    padding: 14px 4px;
    font-size: 17px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 55, 98, 0.12);
    color: var(--lp-header-nav-mobile-link);
    white-space: normal;
  }

  .lp-site-header--with-nav .lp-site-header__nav li {
    width: 100%;
  }

  .lp-site-header--with-nav .lp-site-header__nav li + li a::before {
    display: none;
  }

  .lp-site-header--with-nav .lp-site-header__nav a::after {
    display: none;
  }

  .lp-site-header--with-nav .lp-site-header__nav a[aria-current="true"] {
    color: var(--bdsf-blue);
  }

  .lp-site-header--with-nav .lp-site-header__nav li:last-child a {
    border-bottom: 0;
  }
}

.lp-site-footer {
  background: var(--lp-footer-bg);
  color: var(--lp-footer-text);
  padding-block: clamp(38px, 4vw, 60px) 26px;
  font: 15px/1.45 "Inter", "Roboto", "Segoe UI", sans-serif;
}

.lp-site-footer__inner {
  max-width: var(--lp-footer-inner-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 2.4vw, 36px);
}

.lp-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 45px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--lp-footer-border);
}

/* Mittlere Spalte leer, wenn keine Seiten-Links — hält „Rechtliches“ auf Desktop ausgerichtet */
.lp-site-footer__col--nav-placeholder {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lp-site-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 18px);
}

.lp-site-footer__logo {
  flex: 0 0 auto;
  width: clamp(56px, 6vw, 78px);
  height: auto;
  object-fit: contain;
}

.lp-site-footer__brand-text {
  flex: 1 1 auto;
  min-width: 0;
}

.lp-site-footer__brand-title {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--lp-footer-heading);
}

.lp-site-footer__brand-desc {
  margin: 12px 0 0;
  max-width: 40ch;
  line-height: 1.6;
}

.lp-site-footer__heading {
  margin: 0 0 14px;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lp-footer-heading);
}

.lp-site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-site-footer__links li + li {
  margin-top: 8px;
}

.lp-site-footer__links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.lp-site-footer__links a:hover {
  color: var(--lp-footer-link-hover);
}

.lp-site-footer__btm {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--lp-footer-text-muted);
}

.lp-site-footer__consent-note {
  display: none;
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(194, 138, 64, 0.45);
  border-radius: 6px;
  background: rgba(194, 138, 64, 0.12);
  color: #f3e6d0;
  font-size: 13px;
  line-height: 1.45;
}

.lp-site-footer__consent-note:not([hidden]) {
  display: block;
}

.lp-site-footer__consent-note a {
  color: #e2bc74;
  margin-left: 0.35em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-site-footer__consent-note a:hover {
  color: #f0d39a;
}

.lp-site-footer__disclaimer {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

/* Rechtliches-Popup über der Onepage */
.lp-legal-modal[hidden] {
  display: none !important;
}

.lp-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lp-legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 40, 0.55);
}

.lp-legal-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height: min(84vh, 820px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.lp-legal-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.lp-legal-modal__title {
  margin: 0;
  font-size: 17px;
  color: var(--bdsf-blue);
}

.lp-legal-modal__close {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--bdsf-blue);
  padding: 2px 6px;
}

.lp-legal-modal__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

.lp-legal-modal__fallback {
  margin: 0;
  padding: 9px 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  background: #f8fafc;
}

.lp-legal-modal__fallback a {
  color: var(--bdsf-blue);
}

html.lp-legal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .lp-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .lp-site-footer__col--nav-placeholder {
    display: none;
  }

  .lp-site-footer__btm {
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 720px) {
  .lp-hide-mobile {
    display: none !important;
  }
}

/* Nach-oben-Button */
.lp-totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bdsf-gold);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 25, 55, 0.28);
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.lp-totop__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}

.lp-totop:hover {
  background: #a87432;
  transform: translateY(-2px);
}

.lp-totop[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .lp-totop {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* Optionales Zusatzfeld (Honeypot): für Menschen unsichtbar, ohne display:none / off-screen */
.lp-form-aux {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lp-form-aux:focus-within {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  overflow: visible;
}

