/*
Theme Name: Jana König – Praxis
Author: Custom Theme
Description: Individuelles Gutenberg-Theme für die Praxis von Jana König. Dunkle, ruhige Gestaltung mit Goldtypografie, globalem Hintergrundbild und geometrischen Header-/Footer-Bildern. Die Gestaltung wird zusätzlich über den WordPress-Customizer gesteuert.
Version: 18.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: jana-koenig-praxis
*/

:root {
  --jk-blue: #061c2b;
  --jk-gold: #d8ad45;
  --jk-gold-light: #e6c665;
  --jk-cream: #f4eee0;
  --jk-muted: #c6c0b3;
  --jk-content-width: 1080px;
  --jk-header-height: 130px;
  --jk-footer-height: 90px;
  --jk-footer-max-height: 120px;
  --jk-overlay: 0.08;
  --jk-radius: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--jk-cream);
  background: var(--jk-blue);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--jk-gold-light);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus {
  color: var(--jk-cream);
}

.jk-page-background {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-color: var(--jk-blue);
  background-image: var(--jk-bg-desktop);
  background-repeat: no-repeat;
  background-position: var(--jk-bg-position);
  background-size: var(--jk-bg-size);
  pointer-events: none;
}

.jk-page-overlay {
  position: fixed;
  inset: 0;
  z-index: -9;
  background: rgba(2, 16, 25, var(--jk-overlay));
  pointer-events: none;
}

body.jk-bg-scroll .jk-page-background {
  position: absolute;
  height: 100%;
}

body.jk-bg-scroll .jk-page-background {
  background-attachment: scroll;
}

body.jk-bg-fixed .jk-page-background {
  position: fixed;
  background-attachment: fixed;
}

.jk-site {
  min-height: 100vh;
}

.jk-header,
.jk-footer {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 100;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.jk-header {
  top: 0;
  height: var(--jk-header-height-live, var(--jk-header-height));
  min-height: 0;
}

.jk-footer {
  bottom: 0;
  height: var(--jk-footer-height);
  min-height: 0;
}


.jk-header__inner,
.jk-footer__inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--jk-content-width));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.jk-header__inner {
  justify-content: flex-start;
}

.jk-footer__inner {
  justify-content: flex-end;
  text-align: right;
}

.jk-brand {
  max-width: min(680px, 75%);
}

.jk-site-title {
  margin: 0;
  color: var(--jk-gold-light);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.jk-site-title a {
  color: inherit;
  text-decoration: none;
}

.jk-site-description {
  margin: 0.45rem 0 0;
  color: var(--jk-cream);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
}

.jk-main {
  width: 100%;
}

.jk-content {
  width: min(calc(100% - 48px), var(--jk-content-width));
  margin-inline: auto;
  padding-block: 28px 36px;
  text-align: var(--jk-content-align);
}

.jk-content-align-left {
  --jk-content-align: left;
}

.jk-content-align-center {
  --jk-content-align: center;
}

.jk-content-align-right {
  --jk-content-align: right;
}

/* Startseite: die Startseiten-Einstellung gilt auch für Blöcke mit eigener Ausrichtung im Editor. */
.jk-frontpage-content :is(.has-text-align-left, .has-text-align-center, .has-text-align-right) {
  text-align: var(--jk-content-align);
}

/* Bei Mitte/Rechts stehen die Punkte in der Zeile und richten sich mit dem Text aus. */
.jk-content-align-center .jk-content :is(ul, ol),
.jk-content-align-right .jk-content :is(ul, ol) {
  list-style-position: inside;
  padding-left: 0;
}

.jk-content .wp-block-group,
.jk-content .wp-block-cover,
.jk-content .wp-block-columns,
.jk-content .wp-block-media-text {
  border-radius: var(--jk-radius);
}

.jk-content h1,
.jk-content h2,
.jk-content h3,
.jk-content h4,
.jk-content h5,
.jk-content h6 {
  color: var(--jk-gold-light);
  text-wrap: balance;
}

.jk-content h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.06;
}

.jk-content h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
}

.jk-content h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.jk-legal .jk-content h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.jk-legal .jk-content h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.jk-content p,
.jk-content li {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.jk-content .wp-block-button__link {
  background: var(--jk-gold);
  color: #071722;
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}

.jk-content .wp-block-button__link:hover,
.jk-content .wp-block-button__link:focus {
  background: var(--jk-gold-light);
  color: #071722;
}

.jk-content hr.wp-block-separator {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  opacity: 1 !important;
}

.jk-content .wp-block-separator {
  width: var(--jk-separator-width, 80px);
  margin-left: 0;
  margin-right: auto;
  border: 0 !important;
  border-top: 0 !important;
  height: var(--jk-separator-thickness, 1px);
  min-height: var(--jk-separator-thickness, 1px);
  background: var(--jk-separator-color, var(--jk-gold));
  opacity: 1;
}

.jk-content .has-text-align-center .wp-block-separator {
  margin-inline: auto;
}

.jk-content .has-text-align-right .wp-block-separator {
  margin-left: auto;
  margin-right: 0;
}



/* Contact Form 7 – ruhige, transparente Praxisgestaltung */
.jk-content .wpcf7 {
  width: min(100%, 760px);
  margin: 2rem auto 0;
  color: var(--jk-cream);
}

.jk-content .wpcf7 form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.jk-content .wpcf7 p {
  margin: 0;
}

.jk-content .wpcf7 label {
  display: block;
  margin: 0;
  color: var(--jk-cream);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.jk-content .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.jk-content .wpcf7 textarea,
.jk-content .wpcf7 select {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(230, 198, 101, 0.58);
  border-radius: 10px;
  background: rgba(2, 19, 30, 0.38);
  color: var(--jk-cream);
  font: inherit;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 5px 18px rgba(0,0,0,0.08);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.jk-content .wpcf7 textarea {
  min-height: 170px;
  resize: vertical;
}

.jk-content .wpcf7 input::placeholder,
.jk-content .wpcf7 textarea::placeholder {
  color: rgba(244, 238, 224, 0.62);
}

.jk-content .wpcf7 input:not([type="submit"]):focus,
.jk-content .wpcf7 textarea:focus,
.jk-content .wpcf7 select:focus {
  outline: none;
  border-color: var(--jk-gold-light);
  background: rgba(2, 19, 30, 0.52);
  box-shadow: 0 0 0 3px rgba(216, 173, 69, 0.14), 0 8px 24px rgba(0,0,0,0.12);
}

.jk-content .wpcf7 input[type="submit"] {
  justify-self: start;
  margin-top: 0.35rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--jk-gold);
  border-radius: 10px;
  background: var(--jk-gold);
  color: #071722;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(0,0,0,0.12);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.jk-content .wpcf7 input[type="submit"]:hover,
.jk-content .wpcf7 input[type="submit"]:focus {
  background: var(--jk-gold-light);
  border-color: var(--jk-gold-light);
  transform: translateY(-1px);
}

.jk-content .wpcf7 input[type="submit"]:focus-visible {
  outline: 3px solid rgba(230, 198, 101, 0.28);
  outline-offset: 2px;
}

.jk-content .wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.jk-content .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  color: #f0c7a5;
  font-size: 0.9rem;
}

.jk-content .wpcf7 .wpcf7-response-output {
  margin: 0.5rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(230, 198, 101, 0.5);
  border-radius: 10px;
  background: rgba(2, 19, 30, 0.34);
}

.jk-content .wpcf7 .wpcf7-spinner {
  vertical-align: middle;
  margin: 0 0 0 0.6rem;
}

@media (max-width: 767px) {
  .jk-content .wpcf7 {
    width: 100%;
  }

  .jk-content .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
  .jk-content .wpcf7 textarea,
  .jk-content .wpcf7 select {
    padding: 0.82rem 0.9rem;
    border-radius: 9px;
  }

  .jk-content .wpcf7 textarea {
    min-height: 150px;
  }

  .jk-content .wpcf7 input[type="submit"] {
    width: 100%;
  }
}

/* Reusable Gutenberg separator styles.
 * The diamond style uses the separator itself for the two line segments
 * and a centered rotated square for the diamond. No opaque background is
 * painted behind the diamond, so the page texture remains visible.
 */
.jk-content .wp-block-separator.is-style-jk-gold-line {
  background: var(--jk-separator-color, var(--jk-gold));
}

.jk-content .wp-block-separator.is-style-jk-diamond {
  position: relative;
  height: calc(var(--jk-separator-diamond-size, 10px) * 1.6);
  min-height: calc(var(--jk-separator-diamond-size, 10px) * 1.6);
  background: linear-gradient(
    to right,
    var(--jk-separator-color, var(--jk-gold)) 0,
    var(--jk-separator-color, var(--jk-gold)) calc(50% - var(--jk-separator-diamond-gap, 10px)),
    transparent calc(50% - var(--jk-separator-diamond-gap, 10px)),
    transparent calc(50% + var(--jk-separator-diamond-gap, 10px)),
    var(--jk-separator-color, var(--jk-gold)) calc(50% + var(--jk-separator-diamond-gap, 10px)),
    var(--jk-separator-color, var(--jk-gold)) 100%
  ) center / 100% var(--jk-separator-thickness, 1px) no-repeat;
}

.jk-content .wp-block-separator.is-style-jk-diamond::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--jk-separator-diamond-size, 10px);
  height: var(--jk-separator-diamond-size, 10px);
  box-sizing: border-box;
  border: 2px solid var(--jk-separator-color, var(--jk-gold));
  background: transparent;
  transform: translate(-50%, -50%) rotate(45deg);
}

.jk-content .wp-block-separator.is-style-jk-double {
  position: relative;
  height: calc(var(--jk-separator-thickness, 1px) * 3);
  min-height: calc(var(--jk-separator-thickness, 1px) * 3);
  background: none;
}

.jk-content .wp-block-separator.is-style-jk-double::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--jk-separator-thickness, 1px);
  background: var(--jk-separator-color, var(--jk-gold));
  box-shadow: 0 calc(var(--jk-separator-thickness, 1px) * 2) 0 var(--jk-separator-color, var(--jk-gold));
}

/* The Customizer's default separator style controls plain/default separators. */
.jk-content .wp-block-separator.is-style-default,
.jk-content .wp-block-separator:not([class*="is-style-"]) {
  background: var(--jk-separator-color, var(--jk-gold));
}

/* Customizer-selected default diamond: same transparent-background technique. */
.jk-separator-default-diamond .jk-content .wp-block-separator.is-style-default {
  position: relative;
  height: calc(var(--jk-separator-diamond-size, 10px) * 1.6);
  min-height: calc(var(--jk-separator-diamond-size, 10px) * 1.6);
  background: linear-gradient(
    to right,
    var(--jk-separator-color, var(--jk-gold)) 0,
    var(--jk-separator-color, var(--jk-gold)) calc(50% - var(--jk-separator-diamond-gap, 10px)),
    transparent calc(50% - var(--jk-separator-diamond-gap, 10px)),
    transparent calc(50% + var(--jk-separator-diamond-gap, 10px)),
    var(--jk-separator-color, var(--jk-gold)) calc(50% + var(--jk-separator-diamond-gap, 10px)),
    var(--jk-separator-color, var(--jk-gold)) 100%
  ) center / 100% var(--jk-separator-thickness, 1px) no-repeat;
}

.jk-separator-default-diamond .jk-content .wp-block-separator.is-style-default::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--jk-separator-diamond-size, 10px);
  height: var(--jk-separator-diamond-size, 10px);
  box-sizing: border-box;
  border: 2px solid var(--jk-separator-color, var(--jk-gold));
  background: transparent;
  transform: translate(-50%, -50%) rotate(45deg);
}

.jk-separator-default-double .jk-content .wp-block-separator.is-style-default {
  position: relative;
  height: calc(var(--jk-separator-thickness, 1px) * 3);
  min-height: calc(var(--jk-separator-thickness, 1px) * 3);
  background: none;
}

.jk-separator-default-double .jk-content .wp-block-separator.is-style-default::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--jk-separator-thickness, 1px);
  background: var(--jk-separator-color, var(--jk-gold));
  box-shadow: 0 calc(var(--jk-separator-thickness, 1px) * 2) 0 var(--jk-separator-color, var(--jk-gold));
}

.jk-footer__meta {
  max-width: min(680px, 75%);
}

.jk-footer__meta p {
  margin: 0.2rem 0;
  color: var(--jk-muted);
  font-size: 0.9rem;
}

.jk-footer__meta .jk-footer-title {
  color: var(--jk-gold-light);
  font-weight: 600;
}

@media (max-width: 767px) {
  .jk-page-background {
    background-image: var(--jk-bg-mobile);
    background-position: var(--jk-bg-position-mobile);
    background-size: var(--jk-bg-size-mobile);
  }

  body.jk-bg-fixed .jk-page-background {
    position: fixed;
    background-attachment: fixed;
  }

  body.jk-bg-scroll .jk-page-background {
    position: absolute;
    background-attachment: scroll;
    height: 100%;
  }

  .jk-header {
    height: var(--jk-header-height-live, var(--jk-header-height-mobile));
    min-height: 0;
  }

  .jk-footer {
    height: var(--jk-footer-height-mobile);
    min-height: 0;
  }

  .jk-main {
    width: 100%;
  }


  .jk-header__inner,
  .jk-footer__inner,
  .jk-content {
    width: min(calc(100% - 32px), var(--jk-content-width));
  }

  .jk-content {
    padding-block: 20px 28px;
  }

  .jk-brand,
  .jk-footer__meta {
    max-width: 88%;
  }

  .jk-footer__inner {
    align-items: flex-end;
    padding-bottom: 24px;
  }
}

/* v15: fixed transparent header + normal-flow footer. No content fade/mask. */
.jk-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.jk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--jk-header-height);
  padding: var(--jk-header-padding-top) 0 var(--jk-header-padding-bottom);
  background: var(--jk-header-bg-start);
  overflow: hidden;
  transition: height .28s ease, padding .28s ease, background-color .28s ease;
}

.jk-header.is-compact {
  height: var(--jk-header-compact-height);
  padding-top: var(--jk-header-compact-padding-top);
  padding-bottom: var(--jk-header-compact-padding-bottom);
  background: var(--jk-header-bg-compact);
}


.jk-header__inner {
  height: 100%;
  transition: width .28s ease;
}

.jk-header.is-compact .jk-header__inner {
  width: min(calc(100% - 48px), calc(var(--jk-content-width) * var(--jk-header-compact-width)));
}

.jk-header.is-compact .jk-site-title {
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
}

.jk-header.is-compact .jk-site-description {
  margin-top: .2rem;
  font-size: clamp(.78rem, 1.15vw, .9rem);
}

.jk-footer {
  position: relative;
  inset: auto;
  z-index: 10;
  height: auto;
  min-height: var(--jk-footer-height);
  flex: 0 0 auto;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.jk-footer__inner {
  min-height: var(--jk-footer-height);
}

.site-content-scroll-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  min-height: calc(100vh - var(--jk-footer-height));
  flex: 1 0 auto;
  overflow: visible;
  padding-top: var(--jk-header-height);
  padding-bottom: 0;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* The content is no longer faded or masked at either edge. */
.jk-main,
.jk-content {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .jk-header {
    height: var(--jk-header-height-mobile);
  }

  .jk-header.is-compact {
    height: var(--jk-header-compact-height-mobile);
  }


  .site-content-scroll-wrapper {
    min-height: calc(100vh - var(--jk-footer-height-mobile));
    padding-top: var(--jk-header-height-mobile);
  }

  .jk-footer,
  .jk-footer__inner {
    min-height: var(--jk-footer-height-mobile);
  }
}


.jk-header__inner,
.jk-footer__inner {
  width: min(calc(100% - 48px), var(--jk-content-width));
  margin-inline: auto;
}

.jk-header__content,
.jk-footer__content {
  width: 100%;
  display: flex;
  align-items: center;
}

.jk-header__content.align-left,
.jk-footer__content.align-left {
  justify-content: flex-start;
  text-align: left;
}

.jk-header__content.align-center,
.jk-footer__content.align-center {
  justify-content: center;
  text-align: center;
}

.jk-header__content.align-right,
.jk-footer__content.align-right {
  justify-content: flex-end;
  text-align: right;
}

.jk-header__content .jk-brand,
.jk-header__content .jk-header__nav,
.jk-footer__content .jk-footer__meta,
.jk-footer__content .jk-footer__nav {
  text-align: inherit;
}

.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link.screen-reader-text:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 100000;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
  text-decoration: underline;
}

/* Sprungziel: Fokus wechselt in den Inhalt, ohne sichtbaren Rahmen. */
#jk-main:focus {
  outline: none;
}

.jk-header__nav,
.jk-footer__nav {
  display: flex;
}

/* Hauptnavigation ist für Screenreader und Tastatur da, optisch bleibt das Haus-Logo. */
.jk-header__nav {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.jk-header__nav:focus-within {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  overflow: visible;
  clip: auto;
  background: #fff;
}

.jk-header__content.align-left .jk-header__nav,
.jk-footer__content.align-left .jk-footer__nav { justify-content: flex-start; }
.jk-header__content.align-center .jk-header__nav,
.jk-footer__content.align-center .jk-footer__nav { justify-content: center; }
.jk-header__content.align-right .jk-header__nav,
.jk-footer__content.align-right .jk-footer__nav { justify-content: flex-end; }

.jk-header__content.align-center .jk-brand,
.jk-footer__content.align-center .jk-footer__meta { margin-inline: auto; }
.jk-header__content.align-right .jk-brand,
.jk-footer__content.align-right .jk-footer__meta { margin-left: auto; }

.jk-footer {
  position: relative !important;
  inset: auto !important;
  height: var(--jk-footer-height) !important;
  min-height: var(--jk-footer-height) !important;
  flex: 0 0 var(--jk-footer-height);
  background: transparent !important;
  overflow: hidden;
}

.jk-footer__inner {
  min-height: var(--jk-footer-height) !important;
  height: var(--jk-footer-height) !important;
  align-items: center;
}


.site-content-scroll-wrapper {
  min-height: 0 !important;
  flex: 1 0 auto;
  padding-top: var(--jk-header-height);
  padding-bottom: 0;
  overflow: visible;
}

.jk-header__content .jk-menu,
.jk-footer__content .jk-menu {
  justify-content: inherit;
}

.jk-footer__nav ul,
.jk-footer__nav li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {

  .jk-footer {
    height: var(--jk-footer-height-mobile) !important;
    min-height: var(--jk-footer-height-mobile) !important;
    flex-basis: var(--jk-footer-height-mobile);
  }

  .jk-footer__inner {
    height: var(--jk-footer-height-mobile) !important;
    min-height: var(--jk-footer-height-mobile) !important;
  }


  .site-content-scroll-wrapper {
    padding-top: var(--jk-header-height-mobile);
  }
}


/* v18: Geometrien unabhängig von Header/Footer, fest an den Viewport-Ecken. */
.jk-fixed-geometry {
  position: fixed;
  z-index: 5;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.jk-fixed-geometry--header {
  top: 0;
  left: 0;
  transform: scale(var(--jk-geometry-header-scale));
  transform-origin: left top;
}

.jk-fixed-geometry--footer {
  right: 0;
  bottom: 0;
  transform: scale(var(--jk-geometry-footer-scale));
  transform-origin: right bottom;
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Tablet intentionally follows the mobile geometry sizing. */
  .jk-fixed-geometry--header { transform: scale(var(--jk-geometry-header-scale-mobile)); }
  .jk-fixed-geometry--footer { transform: scale(var(--jk-geometry-footer-scale-mobile)); }
}

@media (max-width: 767px) {
  .jk-fixed-geometry--header { transform: scale(var(--jk-geometry-header-scale-mobile)); }
  .jk-fixed-geometry--footer { transform: scale(var(--jk-geometry-footer-scale-mobile)); }
}



/* v16: Footermenü immer horizontal */
.jk-footer__nav > ul,
.jk-footer__nav ul.jk-menu,
.jk-footer__nav .menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: var(--jk-footer-menu-justify, flex-end) !important;
  flex-wrap: nowrap !important;
  gap: 1.25rem;
  width: auto !important;
  max-width: none !important;
}

.jk-footer__nav > ul > li,
.jk-footer__nav ul.jk-menu > li,
.jk-footer__nav .menu > li {
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.jk-footer__nav > ul > li > a,
.jk-footer__nav ul.jk-menu > li > a,
.jk-footer__nav .menu > li > a {
  display: inline-block;
  white-space: nowrap;
}

/* Auch verschachtelte Listen dürfen das Hauptmenü nicht untereinander drücken. */
.jk-footer__nav li::before,
.jk-footer__nav li::after {
  content: none !important;
}

@media (max-width: 767px) {
  .jk-footer__nav > ul,
  .jk-footer__nav ul.jk-menu,
  .jk-footer__nav .menu {
    gap: 0.5rem;
  }
}

/* Auf schmalen Displays (z. B. 375 px) passen vier Fußlinks nur mit kleinerer Schrift in eine Zeile. */
@media (max-width: 400px) {
  .jk-footer__nav > ul > li > a,
  .jk-footer__nav ul.jk-menu > li > a,
  .jk-footer__nav .menu > li > a {
    font-size: 0.85em;
  }
}

@media (max-width: 360px) {
  .jk-footer__nav > ul,
  .jk-footer__nav ul.jk-menu,
  .jk-footer__nav .menu {
    gap: 0.3rem;
  }

  .jk-footer__nav > ul > li > a,
  .jk-footer__nav ul.jk-menu > li > a,
  .jk-footer__nav .menu > li > a {
    font-size: 0.8em;
  }
}


/* Site identity logo: scales down with the compact header without changing layout flow. */
.jk-brand { display: flex; align-items: center; gap: 12px; }
.jk-brand__logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.jk-brand__logo .custom-logo-link { display: inline-flex; align-items: center; max-width: var(--jk-logo-max-width, 220px); }
.jk-brand__logo img.custom-logo { display: block; width: auto; height: auto; max-width: min(100%, var(--jk-logo-max-width, 220px)); max-height: var(--jk-logo-max-height, 72px); object-fit: contain; transition: max-height .28s ease, max-width .28s ease, transform .28s ease; transform-origin: left center; }
.jk-header.is-compact .jk-brand__logo img.custom-logo { max-height: calc(var(--jk-logo-max-height, 72px) * var(--jk-logo-compact-scale, 65) / 100); }
@media (max-width: 700px) {
 .jk-brand { gap: 8px; }
 .jk-brand__logo .custom-logo-link { max-width: min(var(--jk-logo-max-width, 220px), 38vw); }
 .jk-brand__logo img.custom-logo { max-height: min(var(--jk-logo-max-height, 72px), 54px); }
 .jk-header.is-compact .jk-brand__logo img.custom-logo { max-height: min(calc(var(--jk-logo-max-height, 72px) * var(--jk-logo-compact-scale, 65) / 100), 38px); }
}


/* Strict logo bounds: override WordPress/global image rules and prevent oversized logos. */
.jk-header .jk-brand__logo,
.jk-header .jk-brand__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: var(--jk-logo-max-width, 220px) !important;
  max-height: var(--jk-logo-max-height, 72px) !important;
  overflow: hidden;
}
.jk-header .jk-brand__logo img.custom-logo,
.jk-header .jk-brand__logo .custom-logo-link img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: var(--jk-logo-max-width, 220px) !important;
  max-height: var(--jk-logo-max-height, 72px) !important;
  object-fit: contain;
  object-position: left center;
}
.jk-header.is-compact .jk-brand__logo,
.jk-header.is-compact .jk-brand__logo .custom-logo-link {
  max-height: calc(var(--jk-logo-max-height, 72px) * var(--jk-logo-compact-scale, 65) / 100) !important;
}
.jk-header.is-compact .jk-brand__logo img.custom-logo,
.jk-header.is-compact .jk-brand__logo .custom-logo-link img {
  max-height: calc(var(--jk-logo-max-height, 72px) * var(--jk-logo-compact-scale, 65) / 100) !important;
}
@media (max-width: 700px) {
  .jk-header .jk-brand__logo,
  .jk-header .jk-brand__logo .custom-logo-link {
    max-width: min(var(--jk-logo-max-width, 220px), 38vw) !important;
    max-height: min(var(--jk-logo-max-height, 72px), 54px) !important;
  }
  .jk-header .jk-brand__logo img.custom-logo,
  .jk-header .jk-brand__logo .custom-logo-link img {
    max-width: min(var(--jk-logo-max-width, 220px), 38vw) !important;
    max-height: min(var(--jk-logo-max-height, 72px), 54px) !important;
  }
}


/* Compact logo dimensions are a percentage of BOTH normal-header dimensions. */
.jk-header.is-compact .jk-brand__logo,
.jk-header.is-compact .jk-brand__logo .custom-logo-link {
  max-width: var(--jk-logo-compact-width, 143px) !important;
  max-height: var(--jk-logo-compact-height, 47px) !important;
}
.jk-header.is-compact .jk-brand__logo img.custom-logo,
.jk-header.is-compact .jk-brand__logo .custom-logo-link img {
  max-width: var(--jk-logo-compact-width, 143px) !important;
  max-height: var(--jk-logo-compact-height, 47px) !important;
}
@media (max-width: 700px) {
  .jk-header.is-compact .jk-brand__logo,
  .jk-header.is-compact .jk-brand__logo .custom-logo-link,
  .jk-header.is-compact .jk-brand__logo img.custom-logo,
  .jk-header.is-compact .jk-brand__logo .custom-logo-link img {
    max-width: min(var(--jk-logo-compact-width, 143px), 38vw) !important;
    max-height: min(var(--jk-logo-compact-height, 47px), 38px) !important;
  }
}
