/* Hamburger-Menü nur bis 1024px sichtbar */
@media (min-width: 1025px) {

  .chm-toggle,
  .chm-overlay {
    display: none !important;
  }
}

.chm-toggle {
  position: relative;
  top: 20px;
  /* innerhalb des Headers platzieren */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background-color: #0F2646;
  border-radius: 15%;
  cursor: pointer;
  z-index: 9999;
}

.chm-toggle span {
  position: absolute;
  width: 18px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.chm-toggle span:nth-child(1) {
  top: 10px;
}

.chm-toggle span:nth-child(2) {
  top: 18px;
}

.chm-toggle span:nth-child(3) {
  top: 26px;
}

.chm-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 18px;
}

.chm-toggle.active span:nth-child(2) {
  opacity: 0;
}

.chm-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 18px;
}

.chm-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0F2646B3;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}
@media (max-width: 768px) {
  .chm-overlay {
    background-color: rgba(15, 38, 70, 0.9);
    /* = #0F2646 mit 90% Deckkraft */
  }
}

.chm-overlay.active {
  display: flex;
  animation: slideDown 0.4s ease forwards;
}

@media (max-width: 768px) {
  .chm-overlay.active {
    animation: slideLeft 0.4s ease forwards;
  }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes slideLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.chm-nav {
  width: 100%;
}

.chm-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
}

.chm-menu li {
  width: 100%;
}

.chm-menu li a {
  display: block;
  width: 100%;
  padding: 20px;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  transition: background 0.3s;
}

.chm-menu li a:hover {
  background-color: #E749017D;
}

.chm-menu li.current-menu-item a {
  background-color: #E74901;
}

@media (max-width: 1024px) {
  .chm-menu {
    margin-top: -385px;
    padding-left: 0px;
  }
}

@media (max-width: 960px) {
  .chm-menu {
    text-align: center;
    margin-top: 495px;
    padding-left: 0px;
  }
@media (max-width: 820px) {
  .chm-menu {
    text-align: center;
    margin-top: -225px;
    padding-left: 0px;
  }
@media (max-width: 768px) {
  .chm-menu {
    text-align: center;
    margin-top: -100px;
    padding-left: 0px;
  }
}

@media (max-width: 480px) {
  .chm-menu {
    text-align: left;
    margin-top: -70px;
    padding-left: 0px;
  }
}

/*** SCHRIFT ***/
@font-face {
  font-family: 'Klavika Condensed';
  src: url('https: //kath.formatwerbung.com/wp-content/uploads/2025/08/Klavika-Condensed.woff2') format('woff2'),
    url('https: //kath.formatwerbung.com/wp-content/uploads/2025/08/Klavika-Condensed.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



/* Standard (Desktop) */
.chm-menu li a {
  font-size: 2.2rem;
  font-family: "Klavika Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 1.0;
}
/* Desktop Hover-Effekt: Schrift vergrößern */
@media (min-width: 1025px) {
  .chm-menu li a {
    transition: font-size 0.2s ease;
  }

  .chm-menu li a:hover {
    font-size: 2.3rem;
  }
}

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .chm-menu li a {
    font-size: 1.9rem;
    font-family: "Klavika Condensed", sans-serif;
  }
}

/* Handy (max 768px) */
@media (max-width: 768px) {
  .chm-menu li a {
    font-size: 1.5rem;
    font-family: "Klavika Condensed", sans-serif;
  }
}

/* Extra klein (max 480px) */
@media (max-width: 480px) {
  .chm-menu li a {
    font-size: 1.2rem;
  }
}


