*{
    margin: 0;
    padding: 0;
    font-family: 'Source Sans 3', sans-serif;
}

a {
  text-decoration: none; /* Fjerner understregning */
}

/* Body og generelle stilarter */
body {
  background-color: #FBF4EE; /* Lys cremefarvet baggrund */
}

h1 {
  font-family: 'kalam';
  color: #332823;
  font-size: 50px;
  font-weight: 500;
}

h2 {
  font-family: 'Source Sans 3', sans-serif;
  color: #332823;
  font-size: 40px;
  font-weight: 500;
}

p {
  font-family: 'Source Sans 3', sans-serif;
  color: #332823;
}



/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background-color: transparent;
  transition: 
      background-color 0.6s ease,
      backdrop-filter 0.6s ease;
}

header.scrolled {
  background-color: #FBF4EE; 
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 100%;
  z-index: 999;
  border-radius: 30px 30px 30px 30px;
}

.icons {
  display: flex;
  gap: 15px;

  position: relative;
}

.icons img {
  height: 25px;
  cursor: pointer;
}

/* Knap til søgning (uden standard-knap-styling) */
.search-toggle {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* Selve dropdown-boksen – skjult som udgangspunkt */
.search-dropdown {
  position: absolute;
  top: 170%;          /* lige under ikonerne */
  right: 50%;        /* justér efter behov */
  background: #FBF4EE;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: none;      /* skjult til at starte med */
  z-index: 1500;
}

.search-dropdown.open {
  display: block;     /* vises når jeg tilføjer .open i JS */
}

/* Formularen indeni */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  min-width: 200px;
  font-size: 14px;
}

/* Luk-knap (kryds) */
.search-close {
  background: none;
  border: none;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  color: #332823;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  padding: 0 2rem;
  max-width: 1600px;
  background-color: #544945;
  height: 70px;
  border-radius: 20px 20px 20px 20px;
}

.navbar-logo img {
  height: 40px;
  display: block;
}

.navbar-container .nav-links {
  display: flex;
  text-align: center;
  gap: 1.5rem;
  list-style: none;
}

.navbar-container .nav-links li a {
  color: #FFFAF6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin: 20px;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
}

#btn {
  font-weight: bold;
  background-color: #E4B66C;
  padding: 10px 15px;
  border-radius: 10px;
  color: #332823;
}

#btn:hover {
  background-color: #C4913D;
  color: #ffffff;
}

.nav-links li a {
  position: relative;           /* nødvendig for at placere ::after */
  padding-bottom: 4px;          /* giver plads til stregen */
}


/* Stregen (skjult fra start) */
.nav-links li a:not(#btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;                     /* starter uden bredde */
  height: 2px;                  /* din ønskede højde */
  background: #E4B66C;          /* din farve */
  transition: width 0.25s ease; /* animation */
}

/* Stregen bliver synlig ved hover */
.nav-links li a:not(#btn):hover::after {
  width: 100%;                  /* vokser ud under teksten */
}

/* Hero sektion */

.hero-container {
  position: relative; /* nødvendigt for overlay */
  width: 100%;
  height: 100vh;
  margin-top: -90px; /* justér hvis headerens højde ændres */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* dækker hele området */
  object-position: bottom; /* fylder området */

}

/* Overlayet */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.397); /* sort med 50% gennemsigtighed */
}

/* Tekst ovenpå overlayet */
.hero-text a{
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  font-size: 16px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-weight: 500;
  background-color: #E4B66C;
  width: 200px;
  height: 50px;

  border-radius: 10px;
  color: #332823;
}

.hero-text a:hover {
  background-color: #C4913D;
  color: #ffffff;
}


/* Bamse */

#teddy-default {
  position: fixed; /* Bamse følger med ved scroll */
  right: 40px; /* Placering fra højre */
  bottom: -100px; /* starter synlig */
  width: 160px;   /* bamsens størrelse - container */
  cursor: pointer;
  z-index: 1000; /* Er over det øvrige indhold */
  transition: bottom 0.35s ease;  /* Giver det en glidende bevægelse */
}

#teddy-default img {
  display: block; /* Fjerner luft */
  max-height: 400px; /*Sætter en grænse på max højde */
}

/* Når bamsen er "trukket ned" efter man har lukket popup */
#teddy-default.lowered {
  bottom: -270px;   /* Skjuler bamsen yderigere */
}

/* popup-box */

#bear-popup-overlay {
  position: fixed;
  inset: 0; /* Dækker hele viewport */
  display: none; /* Skjult indtil aktivering */
  align-items: center; 
  justify-content: center;
  background: rgba(0, 0, 0, 0.5); /* Gennemsigtig baggrund */
  z-index: 2000; /* Ligger over alt andet indhold */
}

.popup-content {
  background: #FBF4EE;
  max-width: 700px; /* Max bredde */
  border-radius: 14px; 
  position: relative;
  box-shadow: 0 10px 30px #332823;
  width: 100%;
  padding: 50px;

  display: flex; /* Flexbox */
  justify-content: center; /* Centrerer indhold lodret */
  flex-direction: column; /* Elementerne stables lodret */
  align-items: center; /* Centrerer indhold vandret */
  text-align: center; /* Centrerer tekst */
  
  height: auto;
}

.popup-close {
  position: absolute; /* Placeres i forhold til .popup-content */
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  line-height: 1;
  cursor: pointer;
  font-size: 50px; /* Størrelse på krydset */
  color: #332823; /* Farve på krydset */
}

.cta-btn {
  background-color: #E4B66C;
  color: #332823;
  padding: 10px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  font-weight: 500;
}

#popup-img {
  max-width: 70%; /* Billedets størrelse i forhold til pop up */
  height: auto;       /* bevarer proportioner */
  border-radius: 10px; /* Afrundede hjørner */
  margin: 10px 0;
  object-fit: contain;
}

.popup-content p {
 margin: 10px 0;
}

#popup-bi {
  position: absolute;
  width: 150px;
  left: 0px;
  bottom: 0px;
}

.cta-btn:hover {
  background-color: #C4913D;
  color: #ffffff;
}

/* Ny kunde hos lille nor sektion */
.lille-nor-new {
    padding: 6rem 0 8rem;   /* ekstra bund-plads til bien */
    position: relative;     /* så bien kan placeres ift. sektionen */
  }
  
  /* Max bredde og placering på siden */
  .ln-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2; /* indholdet ligger over bien */
  }
  
  /* Billeddelen */
  .ln-image-wrapper {
    flex: 0.6;             /* billedet fylder ca. 60% af venstre side */
    max-width: 480px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 3;            /* billedet ligger øverst */
  }
  
  .ln-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Tekstdelen */
  .ln-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
    justify-content: center;
  }
  
  /* Overskrift */
  .ln-content h2 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
  }
  
  /* Brødtekst */
  .ln-text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.6rem;
    color: #332823;
  }
  

 .test-btn a{
    font-weight: bold;
    background-color: #E4B66C;
    padding: 12px 20px;
    border-radius: 10px;
    color: #332823;
    transition: all 0.3s ease;
    font-size: 16px;
  margin-top: 20px;
  font-weight: 500;
  display: inline-block;
  }
  .test-btn a:hover {
    background-color: #C4913D;
    color: #ffffff;
  }
  

  
  /* BI + FLYVESTI (ét billede) */
  .ln-bee-image {
    position: absolute;
    width: 360px;          /* justér størrelse */
    left: 35%;             /* ca. midt i sektionen */
    bottom: 0;             /* tæt på bunden af sektionen */
    transform: translateX(-20%);
    z-index: 0;            /* bag indholdet */
    opacity: 0.9;
    pointer-events: none;
  }

/* Karrusel sektion */
.reviews {
background-image: url('images/baggrund.svg');
background-repeat: no-repeat;
background-size: cover;
  padding: 4rem 1.5rem;
  text-align: center;
}
.reviews h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

/* Karrusel-wrapper */
.review-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
/* Pile */
.carousel-btn {
  border: none;
  background: none;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
/* Vindue og track */
.carousel-window {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Hver "side" med 3 anmeldelser */
.carousel-page {
  min-width: 100%;               /* så hver side fylder hele bredden */
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

/* Kortene/anmeldelserne */
.review-card {
  flex: 1;
  padding: 1.5rem 1.2rem 2rem;
  text-align: center;
  border-left: 1px solid #dbc9bc;
}

/* Fjern venstre kant fra den første på siden */
.review-card:first-child {
  border-left: none;
}

/* Hjerter */
.hearts {
  margin-bottom: 1rem;
}

.heart {
  font-size: 1.6rem;
  margin: 0 0.15rem;
}

/* Fyldt hjerte */
.heart.filled {
  color: #c47b87;                 /* lyserød/rosa */
}

/* “Tomt” hjerte – samme tegn, bare lysere farve */
.heart.empty {
  color: #e1c6cc;
}

.review-text {
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.review-name {
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Footer */

footer .container{
    background-color: #544945;
    padding-bottom: 40px;
}

.row{
    display: flex;
    justify-content: space-between;
    padding: 40px 100px;
}
.footer-col ul{
    list-style: none;
}

.footer-col p {
    color: #FFFAF6;
    padding-bottom: 10px;
}

.footer-col h3{
    color: white;
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
}

.footer-col h3::before{
    content: '';
    width: 70px;
    height: 1px;
    position: absolute;
    background-color: #E4B66C;
    bottom: -10px;
}


.footer-col ul li a{
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-col ul li a:hover{
    opacity: 1;
}

.footer-col a {
    display: inline-block;
    padding-bottom: 10px;
}

.footer-col a {
    text-decoration: none;
    color: #FFFAF6;
}

.col p{
    color: white;
}
.row hr{
    opacity: 0.7;
}

.socialIcons {
    display: flex; 
    gap: 15px;   
    margin-top: 30px;             
}

.socialIcons a img {
    height: 24px;                  
    width: 24px;                   
    object-fit: contain;           
    display: block;                
    filter: brightness(0) invert(1);          
    transition: opacity 0.2s ease;
}

.socialIcons a img:hover {
    opacity: 0.7;
}

span{
    color: #FFFAF6;
}

.opening-row {
  display: flex;
  justify-content: space-between;
  width: 180px; /* eller hvad der passer til dit design */
  margin-bottom: 0.4rem;
}

@media (max-width: 600px){
    footer .row{
        flex-direction: column;
        padding: 20px 30px;
    }

    footer .footer-col ul{
        margin-left: 20px;
        margin-bottom: 20px;
    }
    .footer-col input{
        width: 100%;
    }
}
