/* --- RESET --- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; 
}

  /* --- HEADER --- */
  header {
    display: flex;
    align-items: center;
    height: auto;
    padding: 10px;
    box-sizing: border-box;
    color: red;
  }
  
  .image-container {
    flex: 0 0 auto;
  }
  
  .image-container img {
    max-width: 100%;
    height: auto;
  }
  
  .head-text {
    font-size: 60px;
    color: red;
    text-transform: uppercase;
    margin-left: 20px;
  }
  
  .head-text a {
    color: red;
    text-decoration: none;
    font-weight: bold;
    font-size: inherit;
  }
  
  .head-text a:hover {
    color: #b00000;
    text-decoration: underline;
  }
  
  @media (max-width: 768px) {
    .head-text {
      font-size: 40px;
    }
  }
  
  /* --- BURGER & NAV --- */
  .checkbox {
    display: none;
  }
  
  .button {
    position: fixed;
    top: 1rem;
    right: 1rem; /* flytter til højre */
    left: auto;  /* fjerner evt. gamle venstreplacering */
    width: 4rem;
    height: 4rem;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  
  @media (max-width: 600px) {
    .button {
      width: 3rem;
      height: 3rem;
      top: 1rem;
      right: 1rem;
    }
  
    .background {
      width: 3rem;
      height: 3rem;
      top: 1.2rem;
      right: 1.2rem;
    }
  
    .icon,
    .icon::before,
    .icon::after {
      width: 20px;
      height: 2px;
    }
  
    .icon::before {
      top: -6px;
    }
  
    .icon::after {
      top: 6px;
    }
  }
  
  .background {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-image: radial-gradient(#0078B8, black);
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.3s ease;
    z-index: 9998;
  
    /* 💡 Start skjult */
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
  }
  
  .checkbox:checked ~ .background {
    /* 💥 Når åben – vis og udvid */
    transform: scale(80);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    opacity: 0;
    z-index: 9999;
    transition: all 0.8s ease-in-out;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    pointer-events: none;
    width: 100%; 
  }
  
  .checkbox:checked ~ .nav {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* --- BURGER ICON --- */
  .icon {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: gray;
    transition: all 0.3s ease-in-out;
  }
  
  .icon::before,
  .icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: gray;
    left: 0;
    transform-origin: center;
    transition: all 0.3s ease-in-out;
  }
  
  .icon::before {
    top: -8px;
  }
  
  .icon::after {
    top: 8px;
  }
  
  .checkbox:checked + .button .icon {
    background-color: transparent;
  }
  
  .checkbox:checked + .button .icon::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .checkbox:checked + .button .icon::after {
    transform: rotate(-45deg);
    top: 0;
  }
  
  /* --- MENU LIST --- */
/* var: left:50%; transform: translate(-40%, -50%); */
.list{
  position: absolute;
  top: 50%;
  left: 1.5rem;                 /* fast venstrekant */
  transform: translateY(-50%);  /* kun vertikalt */
  width: calc(100% - 3rem);     /* luft til højre, ingen overflow */
  align-items: flex-start;
}

  @media (max-width: 600px){
  .list{
    top: 45%;          /* lidt lavere, så den ikke rammer toppen */
    left: 1rem;
    width: calc(100% - 2rem);
    padding-left: 0;   /* undgå dobbelt indryk */
  }
}
  
  /* --- Fade-in animation for menu punkter --- */
  .item {
    opacity: 0;
    transform: translateY(20px);
    margin: 0.7rem 0; /* <- Tilføj denne */
  }
  
  @media (max-width: 600px) {
    .item {
      font-size: 1.2rem;
      margin: 0.5rem 0; /* lidt tættere på mobil */
    }
  }
  
  @media (min-width: 600px) and (max-width: 1024px) {
    .item {
      font-size: 1.3rem;
      margin: 0.6rem 0;
    }
  }
  
  @media (min-width: 1025px) {
    .item {
      font-size: 1.6rem;
      margin: 0.2rem 0;
    }
  }
  
  /* Kun når nav har åbnet klasse */
  .nav-open .item {
    animation: fadeInUp 0.5s ease forwards;
  }
  
  /* Keyframes */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Staggered delays (1 til 10) */
  .list .item:nth-child(1)  { animation-delay: 0.1s; }
  .list .item:nth-child(2)  { animation-delay: 0.2s; }
  .list .item:nth-child(3)  { animation-delay: 0.3s; }
  .list .item:nth-child(4)  { animation-delay: 0.4s; }
  .list .item:nth-child(5)  { animation-delay: 0.5s; }
  .list .item:nth-child(6)  { animation-delay: 0.6s; }
  .list .item:nth-child(7)  { animation-delay: 0.7s; }
  .list .item:nth-child(8)  { animation-delay: 0.8s; }
  .list .item:nth-child(9)  { animation-delay: 0.9s; }
  .list .item:nth-child(10) { animation-delay: 1s; }
  
    
  .link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 300;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: left;
  }
  
  .link .icon {
    margin-right: 0.5rem;
    display: inline-block;
    width: 1.2em;
    text-align: center;
  }
  
  .link:hover {
    border: 2px solid lightgreen;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.6);
    transform: scale(1.05);
  }
  
  .link:active {
    transform: scale(0.97);
  }
  
  /* --- DROPDOWN --- */
  .dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .submenu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    transition: all 0.3s ease-in-out;
    width: 100%;
  }
  
  .submenu.show {
    display: flex;
  }
  
  .submenu li {
    margin: 0.3rem 0;
  }
  
  .submenu .link {
    font-size: 0.9rem;
    color: #ddd;
    padding: 0.3rem 0.5rem;
    text-align: left;
    border-left: none;
    transition: all 0.3s ease;
  }
  
  .submenu .link:hover {
    color: lightgreen;
    transform: scale(1.05);
  }
  
  #dropdownToggle {
    cursor: pointer;
  }
  
  /* --- RESPONSIVE --- */
  @media (max-width: 600px) {
    .list {
      top: 40%;
      align-items: flex-start;
      padding-left: 1.5rem;
    }
  
    .item {
      font-size: 1.2rem;
      margin: 0.3rem;
    }
  
    .link {
      font-size: 0.9rem;
      padding: 0.3rem 0.6rem;
      text-align: left;
      border-left: none;
    }
  
    .submenu {
      padding-left: 2rem;
    }
  
    .submenu .link {
      font-size: 0.85rem;
    }
  }
  
  @media (min-width: 600px) and (max-width: 1024px) {
    .list {
      top: 45%;
    }
  
    .item {
      font-size: 1.3rem;
      margin: 0.4rem;
    }
  
    .link {
      font-size: 1.1rem;
      padding: 0.4rem 0.8rem;
    }
  }
  
  
  @media (min-width: 1025px) {
    .link {
      font-size: 1.25rem;
      line-height: 1.6;
    }
  
    .item {
      font-size: 1.6rem;
    }
  
    .submenu .link {
      font-size: 1.1rem;
    }
  
    .link .icon {
      font-size: 1.25rem; /* Gør ikonet lidt større også */
    }
  }
  
  .link.active {
    position: relative;
    z-index: 1;
    font-weight: bold;
    border: 2px solid lightgreen;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.6);
    transform: scale(1.03);
    overflow: hidden;
  }
  
  /* Glowing animated border */
  .link.active::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
      120deg,
      transparent,
      lightgreen,
      transparent
    );
    z-index: -1;
    animation: glow-border 2s linear infinite;
    background-size: 200% 200%;
    border-radius: inherit;
  }
  
  /* Animation keyframes */
  @keyframes glow-border {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 200% 50%;
    }
  }

  .fa-icon {
    margin-right: 0.5rem;
    display: inline-block;
    width: 1.2em;
    text-align: center;
    font-size: 1.25rem;
  }
  
/* --- FOOTER --- */
footer {
  background: linear-gradient(-45deg, #0a0a23, #1a1a4d, #4714d1, #000);
  background-size: 400% 400%;
  animation: auroraGlow 15s ease infinite;
  padding: 40px 20px;
  color: #ccc;
  border-top: 2px solid #4714d1;
  text-align: center;
  position: relative;
  z-index: 1;
}

@keyframes auroraGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1000px;
  margin: 0 auto;
  gap: 20px;
  text-align: left;
}

.footer-section {
  flex: 1 1 200px;
  margin-bottom: 20px;
}

.footer-section h4 {
  position: relative;
  color: red;
  font-size: 22px;
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 10px;
  cursor: default;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #4714d1;
  transition: width 0.3s ease;
}

.footer-section h4:hover::after {
  width: 100%;
}

.footer-section p,
.footer-section li {
  font-size: 1rem;
  margin: 4px 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

/* Links override – beskytter mod nav.css */
.footer-links-override a {
  all: unset;
  color: #ccc;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-links-override a:hover {
  color: red;
  text-decoration: underline;
}

/* Alm. footer-links */
.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-section a:hover {
  color: red;
  transform: translateY(-2px);
}

/* Fremhæv "mail"-link */
.footer-section a[href^="mailto:"] {
  color: lightblue;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-section a[href^="mailto:"]:hover {
  color: #66ccff;
}

/* Logo */
.footer-logo img {
  width: 80px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 4px #4714d1);
}

/* SoMe */
.socials a {
  color: #fff;
  margin-right: 10px;
  font-size: 24px;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #4714d1;
}

/* Til toppen */
.back-to-top {
  display: inline-block;
  margin-top: 30px;
  color: #ccc;
  font-size: 20px;
  transition: color 0.3s ease;
}

.back-to-top:hover {
  color: red;
}

/* Copyright */
footer p {
  margin-top: 20px;
  font-size: 14px;
}

/* 🌐 Mobilvisning */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 10px 15px;
    gap: 5px;
  }

  .footer-section {
    margin-bottom: 10px;
  }

  .footer-section h4 {
    font-size: 18px;
    margin-top: 6px;
  }

  .footer-logo img {
    width: 60px;
    margin-bottom: 5px;
  }

  .footer-section p,
  .footer-section li {
    font-size: 0.9rem;
    margin: 3px 0;
  }

  .back-to-top {
    margin-top: 20px;
  }
}

    .page-wrapper {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    main {
      flex: 1;
    }

/* --- Animationer --- */
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0px rgba(103, 58, 183, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(103, 58, 183, 0.7);
  }
  100% {
    box-shadow: 0 0 0px rgba(103, 58, 183, 0.4);
  }
}

/* --- Wrapper --- */
.tilbage-knap-wrapper {
  margin-left: auto;
  margin-right: 120px;
  z-index: 1100;
  animation: slideFadeIn 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

/* --- Knappen --- */
.tilbage-knap {
  background-color: white;
  color: #4714d1;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid #4714d1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1100;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.tilbage-knap::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #4714d1, #673ab7, #4714d1);
  z-index: -1;
  transition: all 0.4s ease;
}

.tilbage-knap:hover::before {
  left: 0;
}

.tilbage-knap:hover {
  background-color: #4714d1;
  color: white;
  border-color: #673ab7;
  box-shadow: 0 0 10px rgba(103, 58, 183, 0.6);
  animation: pulseGlow 1.2s infinite;
}

.tilbage-knap:active {
  transform: scale(0.96) translateY(1px);
}

.tilbage-knap i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.tilbage-knap:hover i {
  transform: translateX(-4px);
}

/* --- Mobilvenlig placering og skalering --- */
@media (max-width: 768px) {
  .tilbage-knap-wrapper {
    position: relative;
    margin: 10px auto;
    text-align: center;
    display: block;
  }

  .tilbage-knap {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 25px;
    white-space: nowrap;
  }

  .tilbage-knap i {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .tilbage-knap-wrapper {
    margin-top: 40px;
    
    display: flex;
    justify-content: flex-end;
  }

  .tilbage-knap {
    padding: 6px 14px;
    font-size: 0.85rem;
    gap: 6px;
    max-width: 130px; /* eller fjern, hvis du vil have mere plads */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .tilbage-knap i {
    font-size: 0.85rem;
  }
}

/* sørg for at alle top-level <li> i .list står venstrejusteret */
.list > li {
  align-self: flex-start;
  margin: 0.7rem 0;              /* samme spacing som .item */
}

/* dropdown-container: venstre, ikke center */
.dropdown{
  display: flex;
  flex-direction: column;
  align-items: flex-start;        /* <- venstre */
  width: 100%;
}

/* selve dropdown-triggeren skal opføre sig som de andre links */
.dropdown > .link{
  display: inline-flex;
  align-items: center;
}

/* pæn indrykning af undermenuen */
.dropdown .submenu{
  margin-left: 1.8rem;
}

/* --- MENU LIST: venstrestil, ingen bullets, pæn spacing --- */
.list{
  position: absolute;
  top: 50%;
  left: clamp(16px, 5vw, 60px);  /* lidt luft fra venstre – virker på alle bredder */
  transform: translateY(-50%);   /* kun lodret centreret */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  list-style: none;              /* bullets væk, også ift. reset */
  margin: 0;
  padding: 0;
}

/* Ens margin mellem punkter */
.item{
  margin: 0.7rem 0;
}

/* Dropdown-overskrift skal linje-op med de andre */
.item.dropdown { margin-left: 0; }

/* Submenu indryk – ingen bullets */
.submenu{
  display: none;
  flex-direction: column;
  align-items: flex-start;
  list-style: none;
  margin-top: .5rem;
  padding-left: 2rem;            /* indryk under "Hold & snit" */
}
.submenu.show{ display:flex; }

/* Ikoner + tekst på samme baseline */
.link{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

/* Små justeringer på mobil */
@media (max-width: 600px){
  .list{
    top: 40%;
    left: 24px;
    transform: translateY(-40%);
  }
  .item{ margin: .5rem 0; }
  .submenu{ padding-left: 1.6rem; }
}

/* Desktop: mere luft fra venstre kant */
@media (min-width: 1025px){
  .list{
    left: clamp(72px, 9vw, 140px);  /* vælg det spænd du synes passer */
  }
}