/* ======= Importera Google Fonts ======= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

/* GRUNDSTIL */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: white; /* <-- Inte bakgrundsbild här längre! */
    overflow-x: hidden;
  }
  
/* ======= HEADER ======= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Justera detta vid behov */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    z-index: 1000;
    gap: 20px; /* Mellanrum mellan logo, meny och språkväxlare */
}
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('Bakgrund.svg') no-repeat center center;
  background-size: cover;
  z-index: -1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px; /* Justera för att flytta loggan upp/ned */
}

/* ======= Desktop Navigationsmeny (dator) ======= */
.desktop-menu {
    margin-left: 0px; /* Flytta menyn lite åt höger från loggan */
}

.desktop-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.desktop-menu ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #002434;
    transition: color 0.3s;
}

.desktop-menu ul li a:hover {
    color: #8a6fa0;
}

/* ======= HAMBURGARMENY (mobil/läsplatta) ======= */
.hamburger-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
    display: none; /* Dölj som standard, visas i media query */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hamburger-menu {
    width: 50px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    background: transparent;
    padding: 5px;
}

.hamburger-menu div {
    width: 35px;
    height: 4px;
    background-color: rgb(0, 0, 0);
    transition: 0.3s;
    border-radius: 2px;
    position: absolute;
}

.hamburger-menu div:nth-child(1) { top: 10px; }
.hamburger-menu div:nth-child(2) { top: 18px; }
.hamburger-menu div:nth-child(3) { top: 26px; }

.hamburger-container.active .hamburger-menu div:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.hamburger-container.active .hamburger-menu div:nth-child(2) {
    opacity: 0;
}

.hamburger-container.active .hamburger-menu div:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

.hamburger-links {
    list-style: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 200px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-container.active .hamburger-links {
    max-height: 200px;
    opacity: 1;
    padding: 8px;
}

.hamburger-links li {
    padding: 10px;
    text-align: center;
}

.hamburger-links a {
    text-decoration: none;
    font-size: 14px;
    color: black;
    display: block;
    transition: 0.3s;
}

.hamburger-links a:hover {
    background: #f0f0f0;
}

/* ======= RESPONSIV DESIGN ======= */
/* ----- För mobil + läsplatta upp till 1024px ----- */
@media (max-width: 1024px) {
    /* Dölj desktop-menyn */
    .desktop-menu {
        display: none;
    }
    /* Visa hamburgarmenyn */
    .hamburger-container {
        display: flex;
    }

    /* Anpassa hero-sektionen om du vill */
    .hero-section {
        padding: 0 10px;
        justify-content: center;
    }
    .content {
        max-width: 90%;
        margin-top: 80px;
    }
    h1 {
        font-size: 40px;
    }
    p {
        font-size: 16px;
    }
    
}
/* POPUP-DESIGN */
.popup {
    display: none;               /* Döljs som standard */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(5px);

    /* Viktigt för att centera popupen */
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup.show {
    /* När popupen är "show" ska den synas, 
       kan också göra display flex här om du vill */
    display: flex;
}

.popup-content {
    background: white;
    padding: 30px 50px;
    border-radius: 12px;
    text-align: left;            /* Eller center, efter tycke och smak */
    width: 500px;
    max-width: 95%;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    
    /* Gör innehållet skrollbart om det blir för långt */
    max-height: 80vh;            /* 80% av viewport-höjden */
    overflow-y: auto;
    
    /* Om du vill ha en enkel fade-in/slide-in: */
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Om du ändå vill ha en kort animation från toppen: 
   Lägg till detta och justera translateY-värdet efter smak */
/*
.popup-content {
    transform: translateY(-20px);
    opacity: 0;
}
.popup.show .popup-content {
    transform: translateY(0);
    opacity: 1;
}
*/

/* Stängningsknapp */
.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: red;
}
.service-button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    background-color: #e6e6fa; /* Ljusrosa-lila */
    color: black;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .service-button:hover {
    background-color: #8a6fa0; /* Mörkare vid hover */
    color: white;
  }
  


/* ----- För dator från 1025px och uppåt ----- */
@media (min-width: 1025px) {
    /* Visa desktop-menyn */
    .desktop-menu {
        display: block;
    }
    /* Dölj hamburgarmenyn */
    .hamburger-container {
        display: none;
    }

    h1 {
        font-size: 82px;
    }
    .content {
        max-width: 800px;
    }
    .hero-section {
        justify-content: center;
    }
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* RUBRIKER OCH TEXT */
h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 50px;
    line-height: 1.2;
    max-width: 800px;
    margin-top: 100px;
}

.subtext {
    font-size: 18px;
    color: #666;
    margin: 10px 0 30px;
}

.service-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.service-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    transition: 0.3s;
    white-space: nowrap;
    background: #e6e6fa; /* Ljusrosa */
    color: black;         /* Svart text */
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 500;
    cursor: pointer;
  }
  
  .service-button:hover {
    background: #8a6fa0; /* Mörkare lila vid hover */
    color: white;
  }
  

/* FAQ-SEKTIONER */
.faq-section {
    background-color: #e6e6fa;
    padding: 40px 0;
    margin-top: 0px;
}

/* FAQ-sektion med vit bakgrund */
.faq-section.white {
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.faq-title {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #2c2c2c;
    text-align: left;
    margin-bottom: 20px;
}

.faq-item {
    position: relative;
    padding: 15px 10px;
    border-bottom: 1px solid #000;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}

.faq-item::after {
    content: '›';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #333;
    transition: transform 0.3s ease;
}

.faq-item.open::after {
    transform: translateY(-50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
    padding: 0 10px;
}

.faq-item.open .faq-answer {
    max-height: 1500px;
    opacity: 1;
    padding: 10px;
    margin-top: 5px;
    background: #f3f3f3;
    border-left: 4px solid #03396c;
}

.faq-item:hover {
    background-color: #dcdcff;
}

/* HEADER & LOGO */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
}

.contact-button {
    position: absolute;
    right: 120px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    border: 2px solid black;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    font-weight: 500;
    cursor: pointer;
}

/* POPUP DESIGN */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: white;
    padding: 30px 50px;
    border-radius: 12px;
    text-align: center;
    width: 500px;
    max-width: 95%;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.popup.show .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: red;
}

/* RESPONSIV DESIGN */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    .faq-title {
        font-size: 30px;
        max-width: 90%;
    }
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 2px 20px;
        height: 60px;
    }
    .logo {
        flex-shrink: 0;
    }
    .contact-button {
        margin-left: auto;
        margin-right: -60px;
        padding: 10px 18px;
        font-size: 14px;
        border: 2px solid black;
        border-radius: 25px;
        background: white;
        font-weight: 500;
        cursor: pointer;
    }
}
.faq-section:not(.white) {
    display: none;
  }
  
  .background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('Bakgrund.svg') no-repeat center center/cover;
    z-index: -1;
    opacity: 2; /* Justera om du vill ha mer eller mindre genomskinlighet */
  }
  