@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

/* ================================
   GENERELT
================================== */
body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
  }
  
  h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #5e3b76;
  }
  
  .section {
    padding: 40px 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  section + section {
    margin-top: 1.5rem;
  }  
  
  /* ================================
     SEKSJONSFARGER
  ================================== */
  #bestill    { background-color: #f0f8ff; }
  #tjenester  { background-color: #f8f3fc; }
  #om-meg     { background-color: #fff8f8; }
  #tilbakemeldinger { background-color: #fef6e4; }
  #kontakt    { background-color: #eafaf1; }
  
  /* ================================
     HEADER + LOGO
  ================================== */
  header {
    position: relative;
  }
  
  .logo-container {
  height: 180px; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: height 0.3s ease;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden; /* Sikrer at ingenting stikker ut */
}

  .logo-container.shrink {
    height: 130px; 
  }

  .logo-container img {
    height: 100%;
    width: auto;
    max-height: 100%;
    max-width: 350px; 
    transition: transform 0.3s ease;
    will-change: transform;
    object-fit: contain;
    display: block;
  }

  .logo-container.shrink img {
    transform: scale(0.8);
  }

  /* ================================
     NAVIGASJON
  ================================== */
  .sticky-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
    background-color: #ffffff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .sticky-nav li {
    margin: 0 15px;
  }
  
  .sticky-nav a {
    text-decoration: none;
    font-size: 1rem;
    color: #5e3b76;
    padding: 10px 15px;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .sticky-nav a:hover {
    background-color: #d991d3;
    color: #fff;
  }
  
  /* ================================
     SPRÅKVELGER
  ================================== */
  .language-switcher {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
  }
  
  .lang-button {
    background: none;
    border: none;
    font-weight: 300;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.3s ease;
    text-decoration: none;
  }
  
  .lang-button.active,
  .lang-button:hover {
    color: #ff77aa;
  }
  
  /* ================================
     BESTILLINGSKJEMA
  ================================== */
  .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .contact-form label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    align-self: flex-start;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: #f9f9f9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s;
  }
  
  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus {
    background-color: #fff;
    border-color: #ff99cc;
    outline: none;
  }
  
  .contact-form button {
    background-color: #ff99cc;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(255, 153, 204, 0.3);
    transition: all 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #e687b5;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
  }
  
  .contact-form textarea {
    resize: none;
    height: 100px;
  }
  
  /* ================================
     TJENESTER
  ================================== */
  .services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .service {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    width: 30%;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .service h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #5e3b76;
  }
  
  .service p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  /* ================================
     TILBAKEMELDINGER
  ================================== */
  .feedback-section {
    background-color: #f8f3fc;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .feedback-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    min-width: 300px;
    max-width: 300px;
    scroll-snap-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    flex-shrink: 0;
  }

  .feedback-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox desktop */
    scrollbar-color: #ff99cc transparent;
  }
  
  /* Standard scrollbar (rosa) */
  .feedback-carousel::-webkit-scrollbar {
    height: 6px;
  }
  
  .feedback-carousel::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .feedback-carousel::-webkit-scrollbar-thumb {
    background-color: #ff99cc;
    border-radius: 10px;
  }
  
  /* Skjul scrollbar på touch-enheter */
  @media (hover: none) and (pointer: coarse) {
    .feedback-carousel {
      scrollbar-width: none; /* Firefox */
    }
    .feedback-carousel::-webkit-scrollbar {
      display: none; /* Webkit */
    }
  }  
  
  .feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
  }
  
  .feedback-card h3 {
    font-size: 1.2rem;
    color: #5e3b76;
  }
  
  .feedback-card p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
  }
  
  .feedback-card span {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
  }
  
  /* ================================
     FOOTER
  ================================== */
  footer {
    margin-top: 60px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    font-size: 0.9rem;
    background-color: #f7f7f7;
    width: 100%;
    box-sizing: border-box;
  }
  
  .footer-text {
  text-align: center;
  }
  .footer-del:not(:last-child)::after {
    content: " | ";
  }

  .footer-version {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.2rem;
  }
  
  /* ================================
     "OM MEG" 
  ================================== */
  .innhold-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
  }
  
  .bilde-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .portrettbilde {
    width: 280px;
    max-width: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  .tekstinnhold p {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
  }
  
  .tidslinje-moderne {
    margin-top: 3rem;
    text-align: left;
  }
  
  .tidslinje-tittel {
    text-align: center;
    color: #5e3b76;
    margin-bottom: 1rem;
  }
  
  .punkter {
    list-style: none;
    padding-left: 0;
  }
  
  .punkter li {
    position: relative;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #379683;
  }
  
  .punkter li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    background-color: #379683;
    border-radius: 50%;
  }

  .grafisk-tidslinje {
    position: relative;
    margin: 3rem 0;
    padding-left: 30px;
    border-left: 4px solid #379683;
  }
  
  .grafisk-tidslinje .punkt {
    position: relative;
    margin-bottom: 2rem;
  }
  
  .grafisk-tidslinje .sirkel {
    position: absolute;
    left: -13px;
    top: 4px;
    width: 12px;
    height: 12px;
    background-color: #379683;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #379683;
  }
  
  .grafisk-tidslinje p {
    background-color: #edf7f5;
    padding: 0.8em 1.2em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 0;
    color: #333;
  }

  .rosa-tidslinje {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 4rem 0;
  }
  
  .tidslinje-kort {
    background-color: #fff8f8;
    border: 4px solid #ff99cc;
    padding: 1.2rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 6px 18px rgba(255, 153, 204, 0.1);
    width: 80%;
    max-width: 500px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .tidslinje-kort:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 153, 204, 0.2);
  }
  
  .tidslinje-kort p {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Montserrat', cursive;
    font-weight: 500;
    line-height: 1.8;
    color: #333;
  }
  
  .tidslinje-kort strong {
    display: block;
    color: #5e3b76;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-style: italic;
  }

  .tidslinje-horisontal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 2rem 2.5rem 2rem 2rem; 
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2rem;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
  }  
  
  .hendelse {
    min-width: 160px;
    background-color: #fff8f8;
    border: 4px solid #ff99cc;
    border-radius: 999px;
    padding: 1rem;
    text-align: center;
    scroll-snap-align: start;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    position: relative;
    z-index: 1;
    box-shadow: 0px 4px 15px rgba(255, 153, 204, 0.1);
    transition: transform 0.2s ease;
  
    /* SENTRERING */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
  }
  
  .hendelse:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(255, 153, 204, 0.2);
  }
  
  .hendelse p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
  }
  
  .hendelse strong {
    display: block;
    color: #5e3b76;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }  
  
  /* ================================
     ANIMASJONER
  ================================== */
  .slide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
  }
  
  .slide-in.visible,
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
  }  

  .betingelser-container {
    background-color: #fff8f8;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .betingelser-container h2 {
    font-size: 1.2rem;       /* mindre skrift */
    color: #5e3b76;
    margin-bottom: 0.6rem;
    text-align: left;        /* venstrestilt */
  }  

/* ==========================
   MOBILTILPASNINGER 
   ========================== */
@media (max-width: 768px) {
  /* Hovedmeny */
  nav.sticky-nav ul {
    flex-direction: column !important;
    align-items: center !important;
    padding: 0;
  }

  nav.sticky-nav li {
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }

  nav.sticky-nav a {
    display: block;
    width: 90%;
    margin: 0 auto;
    font-size: 0.95rem;
    padding: 10px 0;
    border-radius: 25px;
  }
  
  body {
    font-size: 0.9rem !important;
  }

  h3 {
    font-size: 1.1rem !important;
  }

  p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.2rem !important;
  }

  h2 {
    font-size: 2.5rem !important;
  }

.footer-del::after {
  content: " | ";
}

.footer-del:last-of-type::after {
  content: "";
}

@media (max-width: 768px) {
  .footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }

  .footer-del::after {
    content: "";
  }
}

  /* Økt padding på innholdskonteinere */
  .section,
  .innhold-container,
  .betingelser-container,
  .tekstinnhold,
  .feedback-section {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Tjenester per rad */
  .services-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 0 2rem !important;
  }

  .service {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #om-meg .tekstinnhold p {
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  #om-meg .innhold-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #om-meg .hendelse {
    min-width: 90px !important;
    font-size: 0.85rem !important;
    padding: 0.6rem 0.8rem !important;
  }

  .om-meg-container .hendelse strong,
  .om-meg-container .hendelse p {
    font-size: 0.7rem !important;
  }

  .om-meg-container,
  .om-meg-container .tekstinnhold {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
  }
}

@media (max-width: 480px) {
  .section,
  .innhold-container,
  .betingelser-container,
  .tekstinnhold,
  .feedback-section {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }

  p {
    font-size: 0.9rem !important;
  }

  h2 {
    font-size: 1.1rem !important;
  }
}

#kontakt ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;  /* sentrerer teksten */
}

#kontakt li {
  margin-bottom: 10px;
}

.input-error {
  border: 2px solid #d22 !important;
  background-color: #fff0f0;
}