/* -----------------------------
GLOBAL
------------------------------ */

html, body{
  margin:0;
  padding:0;
  font-family:"Helvetica Neue",sans-serif;
  color:white;
  overflow-x:hidden;
  scroll-behavior:smooth;
  }
  
  /* -----------------------------
  BACKGROUND
  ------------------------------ */
  
  .header{
  position:fixed;
  inset:0;
  background-image:url("CATER.jpeg");
  background-size:cover;
  background-position:center;
  z-index:-1;
  }
  
  /* -----------------------------
  SECTION 1
  ------------------------------ */
  
  .section-hero {
   min-height: 100vh;
   padding-bottom: 40vh;
   display: flex;
   flex-direction: column;
   gap: 10px;
  }
  
 /* Sticky titel */
.fixed-title {
  position: relative;
  top: auto;
  z-index: 10;
  pointer-events: none;
  margin-bottom: 0;
  
}
  
  .overskrifter{
  margin-left:3%;
  padding-top:2vh;
  position: sticky;
  top: 2vh;
  
  }
  
  .title{
  font-size:5rem;
  font-weight:700;
  margin:0 0 20px;
  white-space:nowrap;
  }
  
 /* Kasse placeres lige under titlen og er fast */
.kasse {
  position: relative;
  z-index: 15;
  font-size: 1rem;
  line-height: 1.4;
  
 
}
  
  .main-link{
  color:rgb(54,228,164);
  text-decoration:none;
  opacity:.9;
  }
  
  .main-link:hover{
  opacity:.7;
  text-decoration: underline;
  }

 
  /* -----------------------------
  SECTION 2
  ------------------------------ */
  
  .section-menu{
  padding:10vh 5% 0;
  margin-top:10vh;
  }
  
  /* -----------------------------
MENU LAYOUT
------------------------------ */

/* MENU WRAPPER: flex container */
.menu-container {
  display: flex;
  gap: 10px;
  height: 90vh;
  align-items: flex-start;
}

/* -----------------------------
MENU INDEX
------------------------------ */

.menu-index {
  position: sticky;
  top: 5px;        /* hvor på skærmen den skal sidde */
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 30px;
}

.menu-index::after{
  content:"";
  position:absolute;
  right: 2px;
  top:0;
  width:1px;
  height:100%;
  background:rgba(255,255,255,0.5);
}


.menu-index a{
  color:white;
  text-decoration:none;
  opacity:.35;
  transition:.25s;

}

.menu-index a.active{
  opacity:1;
  color: rgb(54, 228, 164);
  font-weight:600;
}

.menu-index a:hover {
  opacity: 0.75;
  color: rgb(54, 228, 164);
}

.menu-index a:focus-visible {
  outline: 2px solid rgb(54, 228, 164);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -----------------------------
MENU CONTENT
------------------------------ */

.menu-stage{
  display:flex;
  flex-direction:column;
  gap:130px;
  overflow-y: auto; /* kun denne scrolles */
  max-height: 90vh; /* samme som container */
  flex: 1;

  padding-top: 99px;
/* fade top + bottom */
}

.dish{
  display:flex;
  flex-direction:column;
  opacity: 1;
  margin-bottom: 50px;
  transition: opacity 0.7s ease;
}





.dish.fade{
  opacity:0.15;
}

/* -----------------------------
IMAGE
------------------------------ */

.dish img{
  max-width:65%;
  height:auto;
  margin-bottom: 0px;
  margin-left: 80px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.dish img:hover {
  transform: scale(1.02);
  filter: drop-shadow(3px 6px 14px rgba(0,0,0,0.35));
}

.small-img {
  max-width: 20%;
}

#dish-11 img,
#dish-12 img,
#dish-17 img{
  max-width:33%;
}

#dish-15 img {
  max-width: 33%;
  margin-top: 15px;
  filter: drop-shadow(3px 5px 10px rgba(0,0,0,0.5));
}

/* -----------------------------
TEXT
------------------------------ */

.dish-text {
  margin-top: -80px;   /* ingen ekstra afstand over teksten */
  margin-left: 100px; /* kan evt. sættes til 0px hvis du vil helt flugte */
  line-height: 1.1;  /* strammere linjeafstand for tættere tekst */
}

.dish-text h3{
  margin:0;
  font-size:1rem;
  font-weight:600;
  letter-spacing:0.04em;
  line-height:1.4;
}

.dish-text p{
  margin:0;
  margin-bottom: 0;
  font-size:1rem;
  line-height:1.4;
}

.menu-toggle {
  width: 100%;
  margin: 20px 0 0 0;
  
  
}

.menu-toggle-header{
  display: flex;           /* ikke skjult */
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 6px 5%;
  border-top: 1px solid rgb(54,228,164);
  border-bottom: 1px solid rgb(54,228,164);
  cursor: pointer;
  color: rgb(54,228,164); /* tekstfarve */
 
}
/* Grundstil: fuld opacity */
.menu-toggle-header span {
  transition: opacity 0.3s ease; /* glidende overgang */
                    /* standard lidt gennemsigtig */
}
/* Pil og tekst ændrer opacity ved hover på hele header */
.menu-toggle-header:hover span {
  opacity: 0.5;                   /* bliver mere gennemsigtig ved hover */
}

.menu-toggle-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}
 
.menu-toggle .arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

/* Pil rotation ved åbning */
.menu-toggle.open .arrow {
  transform: rotate(180deg);
}
    /* Desktop: menu-toggle-content altid synlig */
@media (min-width: 801px) {
  .menu-toggle-content {
    max-height: none;       /* fjern begrænsning */
    overflow: visible;      /* hele menuen vises */
  }
}
  /* -----------------------------
  PAGE FADE IN
  ------------------------------ */
  
  body{
  animation:transitionIn .75s ease;
  }
  
  @keyframes transitionIn{
  from{
  opacity:0;
  transform:translateY(20px);
  }
  to{
  opacity:1;
  transform:translateY(0);
  }
  }
  
  /* -----------------------------
  MOBILE
  ------------------------------ */
/* -----------------------------
PREMIUM MOBILE LAYOUT
------------------------------ */

/* -----------------------------
MOBILE LAYOUT
------------------------------ */

@media (max-width: 800px) {

  .header{
    background-image:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("mobil.jpeg");
  background-size: cover;
  background-position: center;
    
  }



  /* HERO */
  .section-hero{
    min-height:auto;
    padding-bottom:40px;
  }

  .overskrifter{
    position:relative;
    margin-left:6%;
    margin-right:6%;
    padding-top:40px;
  }

  .title{
    font-size:3rem;
    margin-bottom:20px;
  }

  .kasse{
    font-size:0.95rem;
    line-height:1.5;
  }

  #see-menu-btn{
    display:none;
  }


  /* MENU SECTION */
  .section-menu{
    margin-top:40px;
    padding:40px 6%;
  }


  /* SKJUL MENU NUMRE */
  .menu-index{
    display:none;
  }


  /* MENU CONTAINER */
  .menu-container{
    flex-direction:column;
    height:auto;
  }


  /* MENU STAGE */
  .menu-stage{
    overflow:visible;
    max-height:none;
    padding-top:0;
    gap:70px;
  }


  /* RETTER */
  .dish{
    flex-direction:column;
    margin-bottom:20px;
  }


  /* BILLEDER */
  .dish img{
    width:100%;
    max-width:100%;
    margin-left:0;
  }

  .small-img{
    max-width:65%;
  }

  #dish-11 img,
  #dish-12 img,
  #dish-15 img,
  #dish-17 img{
    max-width:75%;
  }


  /* TEKST */
  .dish-text{
    margin:0;
    line-height:1.4;
  }

  .dish-text h3{
    font-size:1rem;
    margin-bottom:5px;
  }

  .dish-text p{
    font-size:0.9rem;
  }


  /* FADE SYSTEM (samme som desktop) */

  .dish{
    opacity:0.15;
    transition:opacity 0.7s ease;
    will-change: opacity;
  }

  .dish:not(.fade){
    opacity:1;
    }

    .menu-toggle{
      width:100%;
      margin-top:20px;
    }

    .menu-toggle-header span {
      color: rgb(54,228,164);
    }

    .menu-toggle.header .arrow {
      color: rgb(54,228,164);
    }
    
    .menu-toggle-header{
      display:flex;
      justify-content:space-between;
      align-items:center;
    
      font-size:1.2rem;
      font-weight:600;
    
      padding:18px 6%;
    
      border-top:1px solid rgb(54,228,164);
      border-bottom:1px solid rgb(54,228,164);
    
      cursor:pointer;
    }
    
    .menu-toggle-content{
      max-height:0;
      overflow:hidden;
      transition:max-height 0.6s ease;
    }
    
    .menu-toggle.open .menu-toggle-content{
      max-height:none;
      overflow: visible;
    }
    #section-menu {
      scroll-margin-top: 60px; /* juster efter højden på sticky header */
    }
    
    .arrow{
      font-size:1.5rem;
      transition:transform 0.3s ease;
    }
    
    .menu-toggle.open .arrow{
      transform:rotate(180deg);
    }

}