/* --- 1. GRUNDINSTÄLLNINGAR --- */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- 2. NAVBAR --- */
.navbar {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #1a1a1a;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo {
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.hamburger-ikon {
  display: none;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ff4757;
}

.active-link {
  color: #ff4757 !important;
}

/* --- 3. FAQ LAYOUT & TEXTSTYRNING --- */
.faq-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 60px 20px;
  box-sizing: border-box;
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.faq-header p {
  color: #666;
  font-size: 1.1rem;
}

/* --- 4. STYLING AV FRÅGOR OCH KATEGORIER --- */
.faq-content {
  text-align: left; /* Gör innehållet lättläst */
}

.faq-category {
  margin-bottom: 45px;
}

.faq-category h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  border-bottom: 2px solid #ff4757;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fcfcfc;
  border-radius: 10px;
  border-left: 4px solid #eee;
  transition: all 0.2s ease-in-out;
}

.faq-item:hover {
  background-color: #f9f9f9;
  border-left-color: #ff4757;
  transform: translateX(5px); /* En liten rörelse åt höger när man hovrar */
}

.faq-item h3 {
  color: #cd212a; /* Din röda pizzafärg */
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

.faq-item p {
  line-height: 1.7;
  color: #444;
  margin: 0;
}

.contact-highlight {
  background-color: #fdf2f2;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-top: 40px;
  border: 1px dashed #ff4757;
}

/* --- 5. FOOTER & POLICY --- */
.sajtfot {
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  border-top: 1px solid #ddd;
}

.sajtfot p {
  font-size: 0.85rem;
  color: #777;
}

.sajtfot a {
  color: #777;
  text-decoration: underline;
  margin-left: 10px;
}

.policy-innehall {
  display: none;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 700px;
  border: 1px solid #eee;
  text-align: left;
}

.policy-innehall.visa {
  display: block;
}

.stang-btn {
  background-color: #cd212a;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  font-weight: bold;
}

/* --- 6. COOKIE POP-UP (Extra skydd för layout) --- */
.policy-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}

.policy-box {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 15px;
  z-index: 2001;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.policy-overlay.visa, .policy-box.visa {
  display: block;
}

.email-link {
    color: #cd212a; /* Matchar din röda färg */
    text-decoration: none; /* Tar bort understrykningen */
    font-weight: bold;
    transition: opacity 0.2s;
}

.email-link:hover {
    text-decoration: underline; /* Visar understrykning bara när man hovrar */
    opacity: 0.8;
}

/* Styla boxen så den ser ut som på bilden (streckad röd kant) */
.contact-highlight {
    background-color: #fdf2f2;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    border: 1px dashed #ff4757; /* Den röda streckade kanten */
    font-size: 1.1rem;
}

/* --- DOLD SEKTION --- */
.dold-sektion {
  display: none;
  padding: 40px 20px;
  background: white;
  border-top: 3px solid #1a1a1a;
}
.dold-sektion.visa {
  display: block;
}

@media (max-width: 768px) {
  body {
    padding: 0 10px;
  }

  .navbar {
    position: static;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .nav-container {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 15px;
    gap: 0;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .hamburger-ikon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    cursor: pointer;
    padding: 5px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 12px 12px;
    z-index: 1001;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 15px 20px;
    display: block;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .faq-wrapper {
    padding: 30px 15px;
    max-width: none;
  }

  .faq-header h1 {
    font-size: 2rem;
  }

  .faq-category {
    margin-bottom: 30px;
  }

  .faq-item {
    padding: 20px;
    border-radius: 15px;
  }

  .contact-highlight {
    padding: 20px;
    border-radius: 15px;
  }

  .sajtfot {
    padding: 20px 10px;
  }
}

