/* ===== Custom code fra Webflow-sitets <head> (uændret) ===== */
html.menu-open {
  overflow: hidden;
}

/* Standard (portræt og desktop) */
#mobileMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* for smooth scroll på iOS */
}

/* Aktiv – vis menu */
#mobileMenu.active {
  transform: translateX(0);
}

/* Landscape breakpoint: 480px til 767px */
@media (min-width: 480px) and (max-width: 767px) and (orientation: landscape) {
  #mobileMenu {
    transform: translateX(-100%);
  }

  #mobileMenu.active {
    transform: translateX(-50%);
  }
}

::selection {
  color: white;
  background-color: #38b6ff;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f1f1f1;
  padding: 1em;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 12px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0 1em 0 0;
  flex: 1 1 60%;
}
.cookie-buttons {
  display: flex;
  gap: 0.5em;
}
.cookie-buttons button {
  padding: 0.5em 1em;
  border: none;
  font-weight: bold;
  cursor: pointer;
}
#accept-essential {
  background: #e9e9e9;
}
#accept-all {
  background: #38b6ff;
  color: white;
}

/* ===== Tilføjelser til WordPress ===== */

/* Den faste header skal ligge under WP's admin-bjælke, når man er logget ind. */
body.admin-bar .header-bg { top: 32px; }
body.admin-bar #mobileMenu { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .header-bg,
  body.admin-bar #mobileMenu { top: 46px; }
}

/* Indhold fra blok-editoren på nye sider */
.jf-wp-content { font-size: 16px; line-height: 1.6; }
.jf-wp-content p, .jf-wp-content ul, .jf-wp-content ol { margin-bottom: 1em; }
.jf-wp-content img { max-width: 100%; height: auto; }
.jf-wp-content h2, .jf-wp-content h3 { margin-top: 1.2em; }
