  /* Reset & Base Container (:where = Spezifität 0, damit Klassenregeln auch im Editor gewinnen) */
  :where(.custom-page-wrapper) * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Mulish', sans-serif;
  }

  .custom-page-wrapper {
    width: 100%;
    background-color: #ffffff;
  }

  /* ---------------- HERO SECTION ---------------- */
  .hero-custom-container {
    width: 100%;
    min-height: 100vh;
    background-image: var(--kjp-hero-front-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .hero-header {
    width: 100%;
    max-width: 1200px;
    padding: 30px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
  }

  .hero-header .hero-logo-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-logo {
    max-height: 200px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
  }

  .hero-nav-desktop {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    position: relative;
  }

  .hero-nav-desktop > li {
    position: relative;
    padding-bottom: 8px;
  }

  .hero-nav-desktop a, 
  .hero-nav-desktop button {
    text-decoration: none;
    color: #2b3a4a;
    font-weight: 400;
    font-size: 1em;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
  }

  .hero-nav-desktop > li.active > a,
  .hero-nav-desktop > li:hover > a,
  .hero-nav-desktop > li:hover > button {
    color: #f08d49;
  }

  .hero-nav-desktop > li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f08d49;
  }

  .arrow-icon {
    font-size: 0.75em;
    transition: transform 0.2s ease;
  }

  .hero-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    list-style: none;
    padding: 0;
    border-radius: 2px;
  }

  .hero-nav-desktop > li:hover .hero-dropdown {
    opacity: 1;
    visibility: visible;
  }

  .hero-dropdown li {
    border-bottom: 1px solid #f0f0f0;
  }

  .hero-dropdown li:last-child {
    border-bottom: none;
  }

  .hero-dropdown a {
    display: block;
    padding: 14px 18px;
    color: #253342;
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1.3;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .hero-dropdown a:hover,
  .hero-dropdown li.active a {
    background-color: #f08d49;
    color: #ffffff;
  }

  .burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 101;
  }

  .burger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background-color: #253342;
    transition: 0.3s;
  }

  .mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 998;
  }

  .mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: #212e39;
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
  }

  .mobile-drawer.open {
    right: 0;
  }

  .mobile-drawer-header {
    padding: 30px 20px 20px 20px;
    text-align: center;
  }

  .mobile-logo {
    max-height: 80px;
    width: auto;
  }

  .mobile-nav {
    list-style: none;
    width: 100%;
  }

  .mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
  }

  .mobile-nav-item.active-page > .mobile-nav-link {
    background-color: #f08d49;
    color: #ffffff;
  }

  .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #1a252e;
    list-style: none;
  }

  .mobile-submenu li {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-submenu a {
    display: block;
    padding: 14px 24px 14px 36px;
    color: #e0e6ed;
    font-size: 0.9em;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-submenu a:hover,
  .mobile-submenu li.active a {
    background-color: #d97d43;
    color: #ffffff;
  }

  .mobile-drawer-footer {
    padding: 30px 20px;
    color: #7b8e9f;
    font-size: 0.8em;
    line-height: 1.5;
    text-align: center;
  }

  .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 50px 20px 80px 20px;
    max-width: 900px;
  }

  .hero-title {
    font-size: clamp(2em, 5vw, 3em);
    font-weight: 600;
    color: #213242;
    line-height: 1.18;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: 1.2em;
    font-weight: 500;
    color: #213242;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    margin-bottom: 32px;
  }

  /* ---------------- WELCOME SECTION ---------------- */
  .welcome-section {
      width: 100%;
    padding: 100px 20px 60px 20px;
    display: flex;
    justify-content: center;
  }

  .welcome-container {
    max-width: 1140px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
  }

  .welcome-left h2 {
    font-weight: 600;
    color: #213242;
    line-height: 1.35;
    letter-spacing: -0.2px;
  }

  .welcome-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #333333;
    font-size: 0.98em;
    line-height: 1.65;
  }

  .welcome-right .welcome-lead {
    font-size: 1.05em;
    font-weight: 600;
    color: #213242;
    margin-bottom: 4px;
  }

  .lucoyo-buttons {
    padding: 10px 0;
  }

  .lucoyo-buttons .wp-block-button {
    align-self: flex-start;
  }

  .welcome-section .welcome-signature {
    margin-top: 15px;
    color: #213242;
  }

  .welcome-sig-line {
    display: block;
  }

  /* ---------------- FEATURE CARDS SECTION ---------------- */
  .features-section {
    width: 100%;
    padding: 40px 20px 100px 20px;
    display: flex;
    justify-content: center;
  }

  .features-card-box {
    max-width: 1140px;
    width: 100%;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    padding: 60px 45px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  @media (min-width: 992px) {
    .features-card-box.is-two-cards {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Textlänge variiert: der Text füllt den Platz, damit alle Links auf einer Linie enden. */
  .feature-item > .feature-text {
    flex-grow: 1;
  }

  .offer-section .offer-card {
    background: #ffffff;
    border-left: 3px solid #f08d49;
    border-radius: 4px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    padding: 32px 36px;
  }

  .offer-section .offer-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #213242;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 12px;
  }

  .offer-section .offer-text {
    color: #55606e;
    line-height: 1.6;
    margin: 0 0 16px;
  }

  .offer-section .offer-link-line {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
  }

  .custom-page-wrapper .feature-icon-circle {
    width: 72px;
    height: 72px;
    border: 2px solid #f08d49;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #f08d49;
    background-color: transparent;
  }

  .feature-icon-circle i {
    font-size: 30px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #f08d49;
  }

  .custom-page-wrapper .feature-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #213242;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
  }

  .custom-page-wrapper .feature-text {
    font-size: 0.95em;
    color: #55606e;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 290px;
  }

  .feature-link {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.5;
    color: #f08d49;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .feature-link:hover {
    color: #d07d23;
  }

  /* ---------------- PROFILE SECTION ---------------- */
  .profile-section {
    width: 100%;
    position: relative;
    /* Bildbox 50vw breit, etwas flacher als 1:1: wenig Kopffreiraum, Hände bis knapp über dem Daumennagel. */
    min-height: max(560px, calc(50vw * 0.94));
    display: flex;
    align-items: center;
  }

  .custom-page-wrapper .profile-image-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100%;
    z-index: 1;
  }

  .profile-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    display: block;
  }

  .profile-content-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profile-card {
    grid-column: 2;
    color: #ffffff;
    padding: 50px 45px;
    border-radius: 4px;
    margin-left: -120px;
    box-shadow: 0 15px 35px rgba(242, 142, 83, 0.25);
  }

  /* Text-only profile (no image): centered card instead of the image grid */
  .profile-section:has(> .profile-card) {
    min-height: 0;
    display: block;
    padding: 80px 20px;
  }

  .profile-section > .profile-card {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 50px 56px;
  }

  /* Notfallzeile: Abstand zum Footer, damit sie nicht daran klebt */
  body.home .emergency-line-section {
    margin-bottom: 72px;
  }

  .custom-page-wrapper .profile-subtitle {
    font-size: 0.82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #213242;
    margin-bottom: 8px;
  }

  .custom-page-wrapper .profile-title {
    font-weight: 600;
    color: #213242;
    margin-bottom: 24px;
    line-height: 1.2;
  }

  .custom-page-wrapper .profile-lead {
    font-size: 1.02em;
    font-weight: 500;
    color: #213242;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .custom-page-wrapper .profile-text {
    font-size: 0.95em;
    color: #213242;
    line-height: 1.65;
    margin-bottom: 30px;
  }

  .praxis-section {
    width: 100%;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .praxis-container {
    max-width: 1140px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
  }

  .praxis-card {
    width: 55%;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    padding: 60px 50px;
    border-radius: 4px;
    position: relative;
    z-index: 2;
  }

  .custom-page-wrapper .praxis-subtitle {
    font-size: 0.9em;
    font-weight: 500;
    color: #55606e;
    margin-bottom: 8px;
  }

  .custom-page-wrapper .praxis-title {
    font-weight: 600;
    color: #213242;
    margin-bottom: 24px;
    line-height: 1.2;
  }

  .custom-page-wrapper .praxis-text {
    font-size: 0.95em;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .custom-page-wrapper .praxis-card > .praxis-text:last-child {
    margin-bottom: 18px;
  }

  .custom-page-wrapper .praxis-image-wrapper {
    width: 55%;
    margin-left: -10%;
    margin-top: 50px;
    position: relative;
    z-index: 1;
  }

  .praxis-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
  }

  /* ---------------- EXAKTE PRAXIS SECTION ---------------- */
  .praxis-exact-section {
    width: 100%;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .praxis-exact-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
  }

  .praxis-exact-card {
    width: 62%;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    padding: 65px 55px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
  }

  .custom-page-wrapper .praxis-exact-subtitle {
    font-size: 0.95em;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 12px;
  }

  .custom-page-wrapper .praxis-exact-title {
    font-weight: 700;
    color: #213242;
    margin-bottom: 28px;
    line-height: 1.15;
  }

  .custom-page-wrapper .praxis-exact-text {
    font-size: 0.95em;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 420px;
  }

  .custom-page-wrapper .praxis-exact-text:last-child {
    margin-bottom: 0;
  }

  .custom-page-wrapper .praxis-exact-image-box {
    width: 48%;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 70px);
    z-index: 2;
  }

  .praxis-exact-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  }

  /* ---------------- FOOTER MIT TAB-NAVIGATION ---------------- */
  .site-footer {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
  }

  /* Info-Leiste / Tab-Navigation */
  .footer-tabs-bar {
    width: 100%;
    background-color: #faf9f6;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
  }

  .footer-tabs-container {
    max-width: 1140px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
  }

  .footer-tab-btn {
    background: transparent;
    border: none;
    padding: 18px 28px;
    font-size: 0.92em;
    font-weight: 600;
    color: #55606e;
    cursor: pointer;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }

  .footer-tab-btn:hover {
    color: #f08d49;
  }

  .footer-tab-btn.active {
    color: #f08d49;
    border-bottom-color: #f08d49;
    background-color: #ffffff;
  }

  /* Tab Inhalte Bereich */
  .footer-tab-content-wrapper {
    width: 100%;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    min-height: 280px;
  }

  .footer-tab-pane {
    display: none;
    max-width: 800px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.35s ease-in-out forwards;
  }

  .footer-tab-pane.active {
    display: block;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Starttab Kontakt Style (1:1 Vorlage Screenshot) */
  .contact-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #213242;
    line-height: 1.65;
  }

  .contact-name {
    font-size: 1.15em;
    font-weight: 700;
    color: #213242;
    margin-bottom: 18px;
  }

  .contact-titles {
    font-size: 0.96em;
    color: #213242;
    margin-bottom: 24px;
  }

  .contact-titles span {
    display: block;
  }

  .contact-address {
    font-size: 0.96em;
    color: #213242;
    margin-bottom: 20px;
  }

  .contact-address span {
    display: block;
  }

  .contact-phone {
    font-size: 0.98em;
    color: #213242;
  }

  .contact-phone-number {
    color: var(--wp--preset--color--accent);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
  }

  .contact-phone-number:hover {
    text-decoration: underline;
  }

  /* Gesetzliche Standard-Texte */
  .legal-tab-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #213242;
    margin-bottom: 20px;
  }

  .legal-tab-text {
    font-size: 0.94em;
    color: #55606e;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
  }

  /* Bottom Copyright Bar */
  .footer-bottom-bar {
    width: 100%;
    background-color: #212e39;
    color: #9aa8b6;
    padding: 22px 20px;
    text-align: center;
    font-size: 0.88em;
  }

  .footer-bottom-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .footer-bottom-links a {
    color: #d0dce7;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
  }

  .footer-bottom-links a:hover {
    color: #f08d49;
  }

  /* Responsive Adjustments */
  @media (max-width: 991px) {
    .hero-nav-desktop {
      display: none;
    }

    .burger-btn {
      display: block;
    }

    .hero-content {
      padding-top: 30px;
    }
    
    .hero-logo {
      max-height: 110px;
    }

    .welcome-container {
      grid-template-columns: 1fr;
      gap: 35px;
    }

    .welcome-section {
      padding: 60px 20px 30px 20px;
    }

    .features-card-box {
      grid-template-columns: 1fr;
      padding: 40px 24px;
      gap: 50px;
    }

    .profile-section {
      flex-direction: column;
      min-height: auto;
      background: var(--wp--preset--color--accent);
    }

    .custom-page-wrapper .profile-image-left {
      position: relative;
      width: 100%;
      height: auto;
      aspect-ratio: 10 / 11;
      overflow: hidden;
      left: 0;
    }

    .profile-section .profile-image-left figure.wp-block-image,
    .profile-image-left img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .profile-image-left img {
      object-fit: cover;
      object-position: center 45%;
    }

    .profile-content-container {
      grid-template-columns: 1fr;
      padding: 0;
    }

    .profile-card {
      grid-column: 1;
      margin-left: 0;
      margin-top: 0;
      border-radius: 0;
      padding: 40px 24px 60px 24px;
      box-shadow: none;
      width: 100%;
    }

    .custom-page-wrapper .profile-title {
      font-size: 1.8em;
    }

    .praxis-section {
      padding: 60px 0;
    }

    .praxis-container {
      flex-direction: column;
    }

    .custom-page-wrapper .praxis-image-wrapper {
      width: 100%;
      margin-left: 0;
      margin-top: 0;
      order: 1;
    }

    .praxis-image-wrapper img {
      border-radius: 0;
      max-height: 380px;
    }

    .praxis-card {
      width: 100%;
      box-shadow: none;
      padding: 40px 24px;
      order: 2;
      border-radius: 0;
    }

    .custom-page-wrapper .praxis-title {
      font-size: 1.8em;
    }

    .praxis-exact-section {
      padding: 60px 0;
    }

    .praxis-exact-container {
      flex-direction: column;
    }

    .custom-page-wrapper .praxis-exact-image-box {
      position: relative;
      top: auto;
      transform: none;
      width: 100%;
      height: 320px;
      order: 1;
    }

    .praxis-exact-image-box img {
      border-radius: 0;
      box-shadow: none;
    }

    .praxis-exact-card {
      width: 100%;
      box-shadow: none;
      padding: 40px 24px;
      order: 2;
      border-radius: 0;
    }

    .custom-page-wrapper .praxis-exact-title {
      font-size: 2em;
    }

    .custom-page-wrapper .praxis-exact-text {
      max-width: 100%;
    }

    /* Footer Mobile */
    .footer-tabs-container {
      flex-wrap: wrap;
      gap: 0;
    }

    .footer-tab-btn {
      padding: 12px 14px;
      font-size: 0.8em;
      flex: 1 1 45%;
      text-align: center;
    }

    .footer-tab-content-wrapper {
      padding: 50px 20px;
    }
  }
