/*
 * JHB Footer CSS
 * Saubere, gekapselte Footer-Styles: stabil, leichtgewichtig und deferred ladbar.
 * Kein JavaScript, keine schweren Selektoren, keine Patch-Snippets.
 */

/* =========================================================
   Scope + Variablen
   ========================================================= */

:is(#colophon, .site-footer, .footer) {
  --jhb-footer-green: #1d4b24;
  --jhb-footer-green-deep: #133719;
  --jhb-footer-green-soft: rgba(255, 255, 255, 0.06);
  --jhb-footer-green-soft-hover: rgba(255, 255, 255, 0.09);
  --jhb-footer-orange: var(--orange, #e9620b);
  --jhb-footer-orange-soft: rgba(233, 98, 11, 0.22);
  --jhb-footer-apricot: #f7a267;
  --jhb-footer-white: #ffffff;
  --jhb-footer-text: rgba(255, 255, 255, 0.92);
  --jhb-footer-muted: rgba(255, 255, 255, 0.62);
  --jhb-footer-line: rgba(255, 255, 255, 0.1);
  --jhb-footer-radius: 18px;
  --jhb-footer-ease: 180ms ease;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: layout paint;
  color: var(--jhb-footer-white);
  background: linear-gradient(180deg, var(--jhb-footer-green-deep), var(--jhb-footer-green) 58%, #17421d);
  font-family: var(--font-sans, "Nunito Sans", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}

:is(#colophon, .site-footer, .footer)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--jhb-footer-orange), #f27a26, var(--jhb-footer-orange));
}

:is(#colophon, .site-footer, .footer) * {
  box-sizing: border-box;
  text-shadow: none;
}

:is(#colophon, .site-footer, .footer) :is(a, p, li, span, h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
}

:is(#colophon, .site-footer, .footer) a {
  color: inherit;
  text-decoration: none;
}

:is(#colophon, .site-footer, .footer) a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.62);
  outline-offset: 4px;
  border-radius: 10px;
}

/* =========================================================
   Hauptlayout
   ========================================================= */

:is(#colophon, .site-footer, .footer) :is(.footer-container, .site-top-footer-inner-wrap) {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(285px, 0.95fr) minmax(510px, 1.55fr) minmax(180px, 0.62fr) minmax(150px, 0.45fr);
  align-items: start;
  gap: clamp(20px, 2vw, 34px);
  width: min(1320px, calc(100% - 64px));
  max-width: none;
  margin-inline: auto;
  padding: clamp(42px, 4vw, 62px) 0 clamp(32px, 3.5vw, 48px);
}

:is(#colophon, .site-footer, .footer)
:is(.site-top-footer-wrap, .site-middle-footer-wrap) > .site-footer-row-container-inner > .site-container,
:is(#colophon, .site-footer, .footer) .site-bottom-footer-wrap > .site-footer-row-container-inner > .site-container {
  width: min(1320px, calc(100% - 64px));
  max-width: none;
  padding-inline: 0;
  margin-inline: auto;
}

:is(#colophon, .site-footer, .footer) :is(.footer-container, .site-top-footer-inner-wrap) > * {
  min-width: 0;
}

:is(#colophon, .site-footer, .footer) .footer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

:is(#colophon, .site-footer, .footer) .footer-standorte-summary,
:is(#colophon, .site-footer, .footer) :is(.footer-container > .footer-box:nth-child(2), .site-top-footer-inner-wrap > *:nth-child(2) .footer-box) {
  align-items: stretch;
}

:is(#colophon, .site-footer, .footer) :is(.footer-title, .footer-box h4, .widget-title) {
  display: inline-grid;
  justify-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--jhb-footer-orange);
  font-size: clamp(1.28rem, 1.04rem + 0.45vw, 1.55rem);
  font-weight: 880;
  line-height: 1.1;
  letter-spacing: -0.032em;
  white-space: nowrap;
}

:is(#colophon, .site-footer, .footer) :is(.footer-title, .footer-box h4, .widget-title)::after {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--jhb-footer-orange), transparent);
}

:is(#colophon, .site-footer, .footer) .footer-box p {
  margin: 0;
  color: var(--jhb-footer-text);
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.55;
}

/* =========================================================
   Kontakt
   ========================================================= */

:is(#colophon, .site-footer, .footer) .footer-contact-text,
:is(#colophon, .site-footer, .footer) .footer-contact-address {
  max-width: 310px;
  color: var(--jhb-footer-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* Adresse bleibt im Footer-Widget pflegbar, wird aber nicht doppelt ausgegeben. */
:is(#colophon, .site-footer, .footer) .footer-contact-address,
:is(#colophon, .site-footer, .footer) .footer-contact-address > * {
  display: none;
}

:is(#colophon, .site-footer, .footer)
:is(.footer-container > .footer-box:first-child, .site-top-footer-inner-wrap > *:first-child .footer-box, .footer-contact) {
  --jhb-footer-contact-axis: min(100%, 310px);
  align-items: center;
}

:is(#colophon, .site-footer, .footer) .footer-contact-text {
  width: var(--jhb-footer-contact-axis);
  max-width: var(--jhb-footer-contact-axis);
  margin-inline: auto;
  text-align: center;
}

:is(#colophon, .site-footer, .footer) .footer-contact-list {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: var(--jhb-footer-contact-axis);
  max-width: 100%;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}

:is(#colophon, .site-footer, .footer) .footer-contact-list li {
  position: relative;
  display: grid;
  grid-template-columns: 40px max-content;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

:is(#colophon, .site-footer, .footer) .footer-contact-list a {
  position: relative;
  z-index: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  min-width: 0;
  color: var(--jhb-footer-white);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.32;
  overflow-wrap: anywhere;
  transition: color var(--jhb-footer-ease), transform var(--jhb-footer-ease);
}

:is(#colophon, .site-footer, .footer) .footer-contact-list a::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-40px - 13px);
  width: calc(40px + 13px);
}

:is(#colophon, .site-footer, .footer) .footer-contact-list a:hover,
:is(#colophon, .site-footer, .footer) .footer-contact-list a:focus-visible,
:is(#colophon, .site-footer, .footer) .footer-contact-list li:hover a,
:is(#colophon, .site-footer, .footer) .footer-contact-list li:focus-within a {
  color: var(--jhb-footer-apricot);
  transform: translateX(2px);
}

:is(#colophon, .site-footer, .footer) .footer-contact-list .footer-contact-icon {
  pointer-events: none;
}

:is(#colophon, .site-footer, .footer) .footer-contact-list li {
  cursor: pointer;
}

/* =========================================================
   Icons + Social
   ========================================================= */

:is(#colophon, .site-footer, .footer)
:is(.footer-contact-icon, .footer-icon, .icon-round, .footer-icons a, .footer-social-links a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--jhb-footer-white);
  background: linear-gradient(90deg, #df5d08, var(--jhb-footer-orange) 52%, #f06c13);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transition: background-color var(--jhb-footer-ease), transform var(--jhb-footer-ease), box-shadow var(--jhb-footer-ease);
}

:is(#colophon, .site-footer, .footer)
:is(.footer-contact-icon, .footer-icon, .icon-round, .footer-icons a, .footer-social-links a):hover,
:is(#colophon, .site-footer, .footer)
:is(.footer-contact-icon, .footer-icon, .icon-round, .footer-icons a, .footer-social-links a):focus-visible,
:is(#colophon, .site-footer, .footer) .footer-contact-list li:hover .footer-contact-icon,
:is(#colophon, .site-footer, .footer) .footer-contact-list li:focus-within .footer-contact-icon {
  background: var(--green2, #4d8e33);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}

:is(#colophon, .site-footer, .footer)
:is(.footer-contact-icon, .footer-icon, .icon-round, .footer-icons a, .footer-social-links a) svg {
  display: block;
  width: 19px;
  height: 19px;
  color: currentColor;
  fill: none;
}

:is(#colophon, .site-footer, .footer) .footer-social-link-facebook svg,
:is(#colophon, .site-footer, .footer) .footer-social-link-facebook svg path {
  fill: currentColor;
  stroke: none;
}

:is(#colophon, .site-footer, .footer) .footer-social-link-instagram svg {
  fill: none;
}

:is(#colophon, .site-footer, .footer) .footer-social-link-instagram svg :is(rect, circle) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

:is(#colophon, .site-footer, .footer) .footer-social-link-instagram svg .instagram-dot {
  fill: currentColor;
  stroke: none;
}

:is(#colophon, .site-footer, .footer) :is(.footer-icons, .footer-social-links) {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

:is(#colophon, .site-footer, .footer) :is(.footer-container > .footer-box:last-child, .site-top-footer-inner-wrap > *:last-child .footer-box) {
  max-width: 190px;
  margin-inline: auto;
}

/* =========================================================
   Standorte
   ========================================================= */

:is(#colophon, .site-footer, .footer) .footer-standorte-summary .footer-location-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-list {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(172px, 1.12fr) minmax(150px, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 565px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item {
  position: relative;
  display: grid;
  grid-template-rows: 16px minmax(0, 1fr);
  align-content: stretch;
  justify-items: center;
  gap: 8px;
  min-height: 94px;
  margin: 0;
  padding: 13px 14px;
  overflow: hidden;
  color: inherit;
  text-align: center;
  background: linear-gradient(180deg, var(--jhb-footer-green-soft), rgba(255, 255, 255, 0.028));
  border: 1px solid var(--jhb-footer-line);
  border-radius: var(--jhb-footer-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 10px 18px rgba(0, 0, 0, 0.07);
  transition: background-color var(--jhb-footer-ease), border-color var(--jhb-footer-ease), transform var(--jhb-footer-ease), box-shadow var(--jhb-footer-ease);
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item > :is(svg, i, .arrow, .chevron, .footer-arrow, .footer-chevron, .location-arrow, .card-arrow),
:is(#colophon, .site-footer, .footer) .footer-location-summary-item > a::after,
:is(#colophon, .site-footer, .footer) .footer-location-summary-item .footer-location-place-links a:only-child::after,
:is(#colophon, .site-footer, .footer) .footer-location-summary-item .footer-location-place-row a:only-child::after {
  content: none;
  display: none;
}

:is(#colophon, .site-footer, .footer) .footer-location-region {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  max-width: 100%;
  min-height: 16px;
  color: rgba(255, 199, 151, 0.96);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

:is(#colophon, .site-footer, .footer) :is(.footer-location-place-links, .footer-location-place-links--stack, .footer-location-place-row) {
  display: flex;
  flex-wrap: wrap;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 2px 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 790;
  line-height: 1.22;
  text-align: center;
  text-wrap: balance;
}

:is(#colophon, .site-footer, .footer) :is(.footer-location-place-links a, .footer-location-place-row a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  line-height: inherit;
  text-align: center;
  transition: color var(--jhb-footer-ease), transform var(--jhb-footer-ease);
}

:is(#colophon, .site-footer, .footer) .footer-location-place-links a:not(:last-child)::after,
:is(#colophon, .site-footer, .footer) .footer-location-place-row a:not(:last-child)::after {
  content: "·";
  margin: 0 5px;
  color: rgba(242, 122, 38, 0.4);
  font-weight: 900;
}

:is(#colophon, .site-footer, .footer) :is(.footer-location-place-links a, .footer-location-place-row a):hover,
:is(#colophon, .site-footer, .footer) :is(.footer-location-place-links a, .footer-location-place-row a):focus-visible {
  color: var(--jhb-footer-apricot);
  transform: translateY(-1px);
}

/* Märkisch-Oderland: bewusst kompakte 2x2-Anordnung. */
:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) {
  grid-template-rows: 16px minmax(0, 1fr);
  gap: 6px;
  min-height: 118px;
  padding: 14px 12px 13px;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) .footer-location-region {
  font-size: 0.67rem;
  letter-spacing: 0.018em;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) :is(.footer-location-place-links, .footer-location-place-links--stack) {
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: 100%;
  font-size: 0.74rem;
  font-weight: 790;
  line-height: 1.15;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) :is(.footer-location-place-links a, .footer-location-place-row a) {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  text-align: center;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) .footer-location-place-links > a:nth-of-type(odd):not(:last-child)::after {
  content: none;
  display: none;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) .footer-location-place-links > a:nth-of-type(even)::after,
:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) .footer-location-place-links > a:nth-of-type(4)::after,
:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) .footer-location-place-row a::after {
  content: none;
  display: none;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) .footer-location-place-links > a:nth-of-type(n+5) {
  display: none;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) .footer-location-note {
  display: none;
}

:is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) :is(.footer-location-place-links, .footer-location-place-links--stack)::after {
  content: "Schule am Tornowsee";
  display: block;
  margin-top: 3px;
  color: var(--jhb-footer-muted);
  font-size: 0.61rem;
  font-weight: 720;
  line-height: 1.14;
  text-align: center;
}

:is(#colophon, .site-footer, .footer) .footer-all-locations {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  align-self: center;
  margin-top: 18px;
  padding: 6px 16px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(242, 122, 38, 0.32);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 830;
  line-height: 1.2;
  text-align: center;
  transition: color var(--jhb-footer-ease), background-color var(--jhb-footer-ease), border-color var(--jhb-footer-ease), transform var(--jhb-footer-ease);
}

:is(#colophon, .site-footer, .footer) .footer-all-locations::after,
:is(#colophon, .site-footer, .footer) .footer-all-locations > :is(svg, i, .arrow, .chevron, .footer-arrow, .footer-chevron) {
  content: none;
  display: none;
}

:is(#colophon, .site-footer, .footer) .footer-all-locations:hover,
:is(#colophon, .site-footer, .footer) .footer-all-locations:focus-visible {
  color: var(--jhb-footer-white);
  background: rgba(233, 98, 11, 0.2);
  border-color: rgba(242, 122, 38, 0.76);
  transform: translateY(-1px);
}

@media (hover: hover) and (min-width: 1025px) {
  :is(#colophon, .site-footer, .footer) .footer-location-summary-item:hover,
  :is(#colophon, .site-footer, .footer) .footer-location-summary-item:focus-within {
    background: linear-gradient(180deg, var(--jhb-footer-green-soft-hover), rgba(255, 255, 255, 0.035));
    border-color: rgba(242, 122, 38, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075), 0 14px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
  }
}

/* =========================================================
   Schnellzugriff
   ========================================================= */

:is(#colophon, .site-footer, .footer) :is(.footer-list-center, .footer-quicklinks) {
  width: 100%;
}

:is(#colophon, .site-footer, .footer) :is(.footer-list-center, .footer-quicklinks) ul,
:is(#colophon, .site-footer, .footer) .footer-box ul:not(.footer-contact-list):not(.footer-location-summary-list) {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(#colophon, .site-footer, .footer) .footer-box li {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

:is(#colophon, .site-footer, .footer) :is(.footer-list-center, .footer-quicklinks) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jhb-footer-white);
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.34;
  text-align: center;
  transition: color var(--jhb-footer-ease), transform var(--jhb-footer-ease);
}

:is(#colophon, .site-footer, .footer) :is(.footer-list-center, .footer-quicklinks) a::after {
  content: "";
  width: 0.38em;
  height: 0.38em;
  margin-left: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0;
  transform: translateX(-4px) rotate(45deg);
  transition: opacity var(--jhb-footer-ease), transform var(--jhb-footer-ease);
}

:is(#colophon, .site-footer, .footer) :is(.footer-list-center, .footer-quicklinks) a:hover,
:is(#colophon, .site-footer, .footer) :is(.footer-list-center, .footer-quicklinks) a:focus-visible {
  color: var(--jhb-footer-apricot);
  transform: translateX(2px);
}

:is(#colophon, .site-footer, .footer) :is(.footer-list-center, .footer-quicklinks) a:hover::after,
:is(#colophon, .site-footer, .footer) :is(.footer-list-center, .footer-quicklinks) a:focus-visible::after {
  opacity: 1;
  transform: translateX(0) rotate(45deg);
}

/* =========================================================
   Signatur + Bottom-Bar
   ========================================================= */

:is(#colophon, .site-footer, .footer) :is(.footer-container, .site-top-footer-inner-wrap)::after {
  content: "";
  display: block;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(220px, 58vw);
  height: clamp(28px, 2.5vw, 34px);
  margin-top: clamp(10px, 1.6vw, 20px);
  background: url("/wp-content/uploads/2025/10/Logo-neu.png") center / contain no-repeat;
  opacity: 0.88;
  pointer-events: none;
}

:is(#colophon, .site-footer, .footer) :is(.site-bottom-footer-wrap, .footer-bottom, .footer-legal-row) {
  background: linear-gradient(90deg, #df5d08, var(--jhb-footer-orange) 52%, #f06c13);
}

:is(#colophon, .site-footer, .footer) :is(.site-bottom-footer-inner-wrap, .footer-legal-row) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  width: 100%;
  min-height: 58px;
  margin: 0 auto;
}

:is(#colophon, .site-footer, .footer) :is(.site-bottom-footer-inner-wrap, .footer-legal-row) > * {
  min-width: 0;
}

:is(#colophon, .site-footer, .footer) :is(.footer-nav, .footer-nav ul, .footer-nav .menu) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 26px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

:is(#colophon, .site-footer, .footer) .footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jhb-footer-white);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.35;
  white-space: nowrap;
  transition: color var(--jhb-footer-ease), transform var(--jhb-footer-ease);
}

:is(#colophon, .site-footer, .footer) .footer-nav a:hover,
:is(#colophon, .site-footer, .footer) .footer-nav a:focus-visible {
  color: #fff7ef;
  transform: translateY(-1px);
}

:is(#colophon, .site-footer, .footer) .footer-copyright-bar {
  display: grid;
  grid-template-columns: 42px minmax(0, max-content);
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 0;
  color: var(--jhb-footer-white);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
}

:is(#colophon, .site-footer, .footer) .footer-copyright-bar,
:is(#colophon, .site-footer, .footer) .footer-copyright-bar * {
  color: var(--jhb-footer-white);
}

:is(#colophon, .site-footer, .footer) .footer-copyright-bar :is(span, a) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  line-height: 1.22;
  text-align: left;
}

:is(#colophon, .site-footer, .footer) .footer-copyright-bar a:hover,
:is(#colophon, .site-footer, .footer) .footer-copyright-bar a:focus-visible {
  color: #fff7ef;
  text-decoration: underline;
  text-underline-offset: 4px;
}

:is(#colophon, .site-footer, .footer) :is(.footer-copyright-bar img, .footer-logo) {
  display: block;
  width: auto;
  height: 30px;
  max-width: 36px;
  margin: 0 auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

:is(#colophon, .site-footer, .footer) .custom-logo {
  display: block;
  width: auto;
  margin: 0;
  filter: none;
  transition: transform var(--jhb-footer-ease);
}

:is(#colophon, .site-footer, .footer) .custom-logo:hover {
  transform: translateY(-1px) scale(1.025);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1320px) and (min-width: 1025px) {
  :is(#colophon, .site-footer, .footer) :is(.footer-container, .site-top-footer-inner-wrap) {
    grid-template-columns: minmax(275px, 0.92fr) minmax(480px, 1.55fr) minmax(170px, 0.62fr) minmax(145px, 0.45fr);
    gap: clamp(16px, 1.5vw, 24px);
    width: min(1260px, calc(100% - 48px));
  }

  :is(#colophon, .site-footer, .footer)
  :is(.site-top-footer-wrap, .site-middle-footer-wrap) > .site-footer-row-container-inner > .site-container,
  :is(#colophon, .site-footer, .footer) .site-bottom-footer-wrap > .site-footer-row-container-inner > .site-container {
    width: min(1260px, calc(100% - 48px));
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-list {
    max-width: 525px;
    grid-template-columns: minmax(145px, 1fr) minmax(165px, 1.12fr) minmax(145px, 1fr);
    gap: 11px;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-item {
    min-height: 90px;
    padding: 12px;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) {
    min-height: 112px;
  }

  :is(#colophon, .site-footer, .footer) .footer-contact-text,
  :is(#colophon, .site-footer, .footer) .footer-contact-list a,
  :is(#colophon, .site-footer, .footer) :is(.footer-list-center, .footer-quicklinks) a {
    font-size: 0.96rem;
  }
}

@media (max-width: 1180px) {
  :is(#colophon, .site-footer, .footer) :is(.footer-container, .site-top-footer-inner-wrap) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(980px, calc(100% - 42px));
    gap: 30px;
  }

  :is(#colophon, .site-footer, .footer)
  :is(.site-top-footer-wrap, .site-middle-footer-wrap) > .site-footer-row-container-inner > .site-container,
  :is(#colophon, .site-footer, .footer) .site-bottom-footer-wrap > .site-footer-row-container-inner > .site-container {
    width: min(980px, calc(100% - 42px));
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 620px);
    gap: 13px 15px;
  }
}

@media (max-width: 768px) {
  :is(#colophon, .site-footer, .footer) :is(.footer-container, .site-top-footer-inner-wrap) {
    grid-template-columns: 1fr;
    width: min(460px, calc(100% - 26px));
    gap: 26px;
    padding-top: 32px;
    padding-bottom: 34px;
  }

  :is(#colophon, .site-footer, .footer)
  :is(.site-top-footer-wrap, .site-middle-footer-wrap) > .site-footer-row-container-inner > .site-container,
  :is(#colophon, .site-footer, .footer) .site-bottom-footer-wrap > .site-footer-row-container-inner > .site-container {
    width: min(460px, calc(100% - 26px));
  }

  :is(#colophon, .site-footer, .footer) .footer-box:not(:first-child) {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
  }

  :is(#colophon, .site-footer, .footer) :is(.footer-title, .footer-box h4, .widget-title) {
    margin-bottom: 18px;
    font-size: 1.42rem;
  }

  :is(#colophon, .site-footer, .footer) .footer-contact-text,
  :is(#colophon, .site-footer, .footer) .footer-contact-list a {
    font-size: 1.06rem;
  }

  :is(#colophon, .site-footer, .footer) .footer-contact-list {
    margin-top: 22px;
  }

  :is(#colophon, .site-footer, .footer) .footer-contact-list li {
    grid-template-columns: 42px max-content;
  }

  :is(#colophon, .site-footer, .footer) .footer-contact-list a {
    text-align: left;
    white-space: nowrap;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 430px);
    gap: 12px 14px;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-item {
    min-height: 96px;
    padding: 14px 13px;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) {
    min-height: 122px;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-region {
    font-size: 0.72rem;
  }

  :is(#colophon, .site-footer, .footer) :is(.footer-location-place-links, .footer-location-place-links--stack, .footer-location-place-row) {
    font-size: 0.95rem;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) :is(.footer-location-place-links, .footer-location-place-links--stack) {
    gap: 2px;
    font-size: 0.78rem;
  }

  :is(#colophon, .site-footer, .footer) .footer-all-locations {
    min-height: 40px;
    margin-top: 16px;
    padding: 9px 22px;
    font-size: 0.9rem;
  }

  :is(#colophon, .site-footer, .footer) :is(.footer-container, .site-top-footer-inner-wrap)::after {
    width: min(195px, 60vw);
    height: 30px;
    margin-top: 8px;
  }
}


@media (max-width: 420px) {
  :is(#colophon, .site-footer, .footer) .footer-contact-list {
    --jhb-footer-contact-axis: min(100%, 292px);
  }

  :is(#colophon, .site-footer, .footer) .footer-contact-list a {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  :is(#colophon, .site-footer, .footer) :is(.footer-container, .site-top-footer-inner-wrap) {
    width: min(100% - 20px, 410px);
    gap: 25px;
    padding-top: 30px;
    padding-bottom: 32px;
  }

  :is(#colophon, .site-footer, .footer)
  :is(.site-top-footer-wrap, .site-middle-footer-wrap) > .site-footer-row-container-inner > .site-container,
  :is(#colophon, .site-footer, .footer) .site-bottom-footer-wrap > .site-footer-row-container-inner > .site-container {
    width: min(100% - 20px, 430px);
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-list {
    gap: 12px;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-item {
    min-height: 98px;
    border-radius: 17px;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) {
    min-height: 128px;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) :is(.footer-location-place-links, .footer-location-place-links--stack) {
    grid-template-columns: 1fr;
    gap: 1px;
    font-size: 0.82rem;
  }

  :is(#colophon, .site-footer, .footer) .footer-location-summary-item:nth-child(5) .footer-location-place-links > a:nth-of-type(odd)::after {
    content: none;
    display: none;
  }

  :is(#colophon, .site-footer, .footer) :is(.site-bottom-footer-inner-wrap, .footer-legal-row) {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    padding: 10px 0 12px;
  }

  :is(#colophon, .site-footer, .footer) :is(.footer-nav, .footer-nav ul, .footer-nav .menu) {
    gap: 6px 24px;
    padding: 0 10px;
  }

  :is(#colophon, .site-footer, .footer) .footer-copyright-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 0 10px;
    text-align: center;
    white-space: normal;
  }

  :is(#colophon, .site-footer, .footer) .footer-copyright-bar :is(span, a) {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    text-align: center;
  }

  :is(#colophon, .site-footer, .footer) :is(.footer-copyright-bar img, .footer-logo) {
    height: 26px;
    max-width: 32px;
  }
}

/* =========================================================
   Bewegung reduzieren
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  :is(#colophon, .site-footer, .footer) *,
  :is(#colophon, .site-footer, .footer) *::before,
  :is(#colophon, .site-footer, .footer) *::after {
    transition: none;
  }

  :is(#colophon, .site-footer, .footer) :is(a, .footer-location-summary-item, .custom-logo):hover,
  :is(#colophon, .site-footer, .footer) :is(a, .footer-location-summary-item, .custom-logo):focus-visible {
    transform: none;
  }
}
