/* =========================================================
     Plan B Floating Header / Menü
     - Desktop: schwebende horizontale Navigation
     - Mobile / Tablet: schwebendes Hamburger-Menü
     - Interne Links öffnen im gleichen Fenster
     - Transparenter weißer Hintergrund mit Türkis-Border
     ========================================================= */

  .planb-header,
  .planb-header *,
  .planb-header *::before,
  .planb-header *::after {
    box-sizing: border-box;
  }

  body {
    padding-top: 94px;
  }

  .planb-header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(calc(100% - 28px), 1250px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--ek-primary, #00DCFF);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  }

  body.admin-bar .planb-header {
    top: 46px;
  }

  @media (max-width: 782px) {
    body {
      padding-top: 88px;
    }

    body.admin-bar .planb-header {
      top: 60px;
    }
  }

  .planb-header__inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .planb-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex: 0 0 auto;
    min-width: 0;
  }

  .planb-logo,
  .planb-logo:link,
  .planb-logo:visited,
  .planb-logo:hover,
  .planb-logo:focus,
  .planb-logo:focus-visible {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    color: var(--ek-ink, #0F172A) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    line-height: 1.05;
    outline: none;
  }

  .planb-logo__main {
    display: block;
    color: var(--ek-ink, #0F172A);
    font-size: clamp(18px, 1.7vw, 23px);
    font-weight: 700;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }

  .planb-logo__sub {
    display: block;
    margin-top: 4px;
    color: var(--ek-secondary, #004F4D);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .planb-menu-btn {
    display: none;
    width: 44px;
    height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--ek-primary, #00DCFF);
    border-radius: 0;
    color: var(--ek-ink, #0F172A);
    cursor: pointer;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }

  .planb-menu-btn:hover,
  .planb-menu-btn:focus,
  .planb-menu-btn:focus-visible {
    background: rgba(0, 220, 255, 0.12);
    border-color: var(--ek-primary, #00DCFF);
    outline: none;
  }

  .planb-menu-btn__icon {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
  }

  .planb-menu-btn__line {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--ek-ink, #0F172A);
    border-radius: 0;
    transition:
      transform 0.22s ease,
      opacity 0.18s ease,
      top 0.22s ease,
      background-color 0.18s ease;
  }

  .planb-menu-btn__line:nth-child(1) {
    top: 0;
  }

  .planb-menu-btn__line:nth-child(2) {
    top: 7px;
  }

  .planb-menu-btn__line:nth-child(3) {
    top: 14px;
  }

  .planb-header.planb-header--open .planb-menu-btn__line:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
  }

  .planb-header.planb-header--open .planb-menu-btn__line:nth-child(2) {
    opacity: 0;
  }

  .planb-header.planb-header--open .planb-menu-btn__line:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
  }

  .planb-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .planb-nav__list {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 2px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: visible;
  }

  .planb-nav__item {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .planb-nav__item::before {
    content: none !important;
    display: none !important;
  }

  .planb-nav__link,
  .planb-nav__link:link,
  .planb-nav__link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 8px;
    background: transparent;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    color: var(--ek-ink, #0F172A) !important;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;
    transition:
      background-color 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease;
  }

  .planb-nav__link:hover,
  .planb-nav__link:focus,
  .planb-nav__link:focus-visible,
  .planb-nav__link:active {
    background: rgba(0, 220, 255, 0.12);
    border-color: var(--ek-primary, #00DCFF) !important;
    color: var(--ek-secondary, #004F4D) !important;
    outline: none;
    text-decoration: none !important;
  }

  .planb-nav__link--cta,
  .planb-nav__link--cta:link,
  .planb-nav__link--cta:visited {
    background: var(--ek-whatsapp, #128C7E) !important;
    border-color: var(--ek-whatsapp, #128C7E) !important;
    color: #ffffff !important;
    font-weight: 700;
  }

  .planb-nav__link--cta:hover,
  .planb-nav__link--cta:focus,
  .planb-nav__link--cta:focus-visible,
  .planb-nav__link--cta:active {
    background: var(--ek-whatsapp-hover, #2F2F2F) !important;
    border-color: var(--ek-whatsapp-hover, #2F2F2F) !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }

  @media (max-width: 1100px) {
    .planb-header__inner {
      padding: 10px 15px;
      gap: 14px;
    }

    .planb-nav__list {
      gap: 4px;
    }

    .planb-nav__link,
    .planb-nav__link:link,
    .planb-nav__link:visited {
      min-height: 36px;
      padding: 7px 8px;
      font-size: 13px;
    }
  }

  @media (max-width: 900px) {
    body {
      padding-top: 86px;
    }

    .planb-header {
      top: 10px;
      width: calc(100% - 20px);
    }

    .planb-header__inner {
      display: block;
      padding: 10px 12px;
    }

    .planb-header__top {
      width: 100%;
    }

    .planb-logo,
    .planb-logo:link,
    .planb-logo:visited,
    .planb-logo:hover,
    .planb-logo:focus,
    .planb-logo:focus-visible {
      align-items: flex-start;
      text-align: left;
    }

    .planb-logo__main {
      font-size: 21px;
      white-space: normal;
      text-align: left;
    }

    .planb-logo__sub {
      font-size: 12px;
      white-space: normal;
      text-align: left;
    }

    .planb-menu-btn {
      display: inline-flex;
    }

    .planb-nav {
      width: 100%;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transition:
        max-height 0.28s ease,
        opacity 0.2s ease,
        visibility 0.2s ease,
        padding-top 0.2s ease;
    }

    .planb-header.planb-header--open .planb-nav {
      max-height: calc(100vh - 120px);
      overflow-y: auto;
      opacity: 1;
      visibility: visible;
      padding-top: 10px;
    }

    .planb-nav__list {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 6px;
      width: 100%;
      overflow: visible !important;
      padding: 0 !important;
    }

    .planb-nav__item {
      width: 100%;
      min-width: 0;
    }

    .planb-nav__link,
    .planb-nav__link:link,
    .planb-nav__link:visited {
      width: 100%;
      min-height: 40px;
      padding: 9px 11px;
      font-size: 13.5px;
      line-height: 1.15;
      white-space: normal;
      justify-content: flex-start;
      text-align: left;
      background: #ffffff;
      border-color: rgba(15, 23, 42, 0.09) !important;
    }

    .planb-nav__link:hover,
    .planb-nav__link:focus,
    .planb-nav__link:focus-visible,
    .planb-nav__link:active {
      justify-content: center;
      text-align: center;
      background: rgba(0, 220, 255, 0.14);
      border-color: var(--ek-primary, #00DCFF) !important;
      color: var(--ek-secondary, #004F4D) !important;
    }

    .planb-nav__link--cta,
    .planb-nav__link--cta:link,
    .planb-nav__link--cta:visited,
    .planb-nav__link--cta:hover,
    .planb-nav__link--cta:focus,
    .planb-nav__link--cta:focus-visible,
    .planb-nav__link--cta:active {
      justify-content: center;
      text-align: center;
    }
  }

  @media (max-width: 420px) {
    body {
      padding-top: 82px;
    }

    .planb-header {
      top: 8px;
      width: calc(100% - 16px);
    }

    .planb-header__inner {
      padding: 9px 10px;
    }

    .planb-logo__main {
      font-size: 20px;
    }

    .planb-menu-btn {
      width: 42px;
      height: 38px;
    }

    .planb-nav__link,
    .planb-nav__link:link,
    .planb-nav__link:visited {
      min-height: 38px;
      padding: 8px 10px;
      font-size: 13px;
    }
  }

/* =========================================================
     Plan B Footer — ekosphere-kompatibel
     - maximale Inhaltsbreite: 1100px
     - Abstand oben: 0px
     - keine border-radius
     - interne Links öffnen im gleichen Fenster
     - ekosphere-Link öffnet bewusst im neuen Tab
     - Pflichtlinks: Impressum, Datenschutz, AGB, Sitemap
     ========================================================= */

  .planb-footer,
  .planb-footer *,
  .planb-footer *::before,
  .planb-footer *::after {
    box-sizing: border-box;
  }

  .planb-footer {
    width: 100%;
    margin-top: 0;
    background: #ffffff;
    border-top: 1px solid var(--ek-primary, #00DCFF);
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ek-ink, #0F172A);
  }

  .planb-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(30px, 4vw, 46px) 22px 22px;
  }

  .planb-footer__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(160px, 1fr));
    gap: clamp(22px, 3vw, 38px);
    align-items: start;
  }

  .planb-footer__brand {
    min-width: 0;
  }

  .planb-footer__logo,
  .planb-footer__logo:link,
  .planb-footer__logo:visited,
  .planb-footer__logo:hover,
  .planb-footer__logo:focus,
  .planb-footer__logo:focus-visible {
    display: inline-flex;
    flex-direction: column;
    color: var(--ek-ink, #0F172A) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
    line-height: 1.05;
  }

  .planb-footer__logo-main {
    display: block;
    color: var(--ek-ink, #0F172A);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 700;
    letter-spacing: -0.025em;
  }

  .planb-footer__logo-sub {
    display: block;
    margin-top: 5px;
    color: var(--ek-secondary, #004F4D);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .planb-footer__text {
    max-width: 410px;
    margin: 16px 0 0;
    color: #334155;
    font-size: 14.5px;
    line-height: 1.55;
  }

  .planb-footer__claim {
    margin: 14px 0 0;
    color: var(--ek-secondary, #004F4D);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
  }

  .planb-footer__col {
    min-width: 0;
  }

  .planb-footer__title {
    margin: 0 0 12px;
    color: var(--ek-ink, #0F172A);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.01em;
  }

  .planb-footer__list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .planb-footer__item {
    margin: 0 0 7px !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .planb-footer__item::before {
    content: none !important;
    display: none !important;
  }

  .planb-footer__link,
  .planb-footer__link:link,
  .planb-footer__link:visited {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 0;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    transition:
      color 0.18s ease,
      border-color 0.18s ease;
  }

  .planb-footer__link:hover,
  .planb-footer__link:focus,
  .planb-footer__link:focus-visible,
  .planb-footer__link:active {
    color: var(--ek-secondary, #004F4D) !important;
    border-color: var(--ek-primary, #00DCFF) !important;
    outline: none;
    text-decoration: none !important;
  }

  .planb-footer__cta-wrap {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .planb-footer__cta,
  .planb-footer__cta:link,
  .planb-footer__cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    background: var(--ek-whatsapp, #128C7E) !important;
    border: 1px solid var(--ek-whatsapp, #128C7E) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap;
    transition:
      background-color 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease;
  }

  .planb-footer__cta:hover,
  .planb-footer__cta:focus,
  .planb-footer__cta:focus-visible,
  .planb-footer__cta:active {
    background: var(--ek-whatsapp-hover, #2F2F2F) !important;
    border-color: var(--ek-whatsapp-hover, #2F2F2F) !important;
    color: #ffffff !important;
    outline: none;
    text-decoration: none !important;
  }

  .planb-footer__bottom {
    margin-top: clamp(26px, 4vw, 40px);
    padding-top: 18px;
    border-top: 1px solid rgba(0, 220, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
  }

  .planb-footer__copy {
    min-width: 0;
  }

  .planb-footer__copy-link,
  .planb-footer__copy-link:link,
  .planb-footer__copy-link:visited {
    color: #475569 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
  }

  .planb-footer__copy-link:hover,
  .planb-footer__copy-link:focus,
  .planb-footer__copy-link:focus-visible,
  .planb-footer__copy-link:active {
    color: var(--ek-secondary, #004F4D) !important;
    border-color: var(--ek-primary, #00DCFF) !important;
    outline: none;
    text-decoration: none !important;
  }

  .planb-footer__legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .planb-footer__legal-link,
  .planb-footer__legal-link:link,
  .planb-footer__legal-link:visited {
    color: #475569 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
  }

  .planb-footer__legal-link:hover,
  .planb-footer__legal-link:focus,
  .planb-footer__legal-link:focus-visible,
  .planb-footer__legal-link:active {
    color: var(--ek-secondary, #004F4D) !important;
    border-color: var(--ek-primary, #00DCFF) !important;
    outline: none;
    text-decoration: none !important;
  }

  @media (max-width: 980px) {
    .planb-footer__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .planb-footer__brand {
      grid-column: 1 / -1;
    }

    .planb-footer__text {
      max-width: 620px;
    }
  }

  @media (max-width: 767px) {
    .planb-footer__inner {
      padding: 28px 14px 20px;
    }

    .planb-footer__grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .planb-footer__brand,
    .planb-footer__col {
      text-align: left;
    }

    .planb-footer__text {
      max-width: none;
      font-size: 14px;
    }

    .planb-footer__link,
    .planb-footer__link:link,
    .planb-footer__link:visited {
      width: 100%;
      min-height: 34px;
    }

    .planb-footer__cta-wrap {
      width: 100%;
    }

    .planb-footer__cta,
    .planb-footer__cta:link,
    .planb-footer__cta:visited {
      width: 100%;
      white-space: normal;
    }

    .planb-footer__bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }

    .planb-footer__legal {
      justify-content: flex-start;
    }
  }

  @media (max-width: 420px) {
    .planb-footer__logo-main {
      font-size: 20px;
    }

    .planb-footer__logo-sub,
    .planb-footer__text,
    .planb-footer__claim,
    .planb-footer__link,
    .planb-footer__link:link,
    .planb-footer__link:visited {
      font-size: 13.5px;
    }
  }

/* Theme integration hardening: preserve the original component behaviour. */
@media (min-width: 901px) {
  .planb-header .planb-menu-btn { display: none !important; }
}
.planb-header .planb-menu-btn { appearance: none; -webkit-appearance: none; }
.planb-footer h2, .planb-footer p, .planb-footer ul, .planb-footer li { font-family: inherit; }
