/* ----- GLOBAL ----- */
* {
  font-family: 'Montserrat', 'Lato', sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #afcfef, #ffffff);
  display: flex;
  flex-direction: column;
}

/* ----- HEADER ----- */
header {
  display: flex;
    align-items: center;        /* Vertikal centrering */
  justify-content: flex-start; /* logga till vänster, text bredvid */
  gap: 20px;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #4296ea, #ff8800);
  color: white;
  border-top: 2px solid #ff8800;
  border-bottom: 2px solid #ff8800;
}

.logga {
  height: 80px;
  width: auto;
  flex-shrink: 0;             /* loggan krymper inte */
}

.header-text {
  text-align: left;           /* texten startar vid loggan */
  font-size: 1.0rem;          /* mindre än tidigare */
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

/* ----- RESPONSIV HEADER ----- */
@media (max-width: 768px) {
  header {
    flex-direction: column;   /* logga ovanför rubrik på riktigt små skärmar */
    align-items: center;
    padding: 1rem;
  }

  .logga {
    height: 60px;             /* mindre på mobil */
    margin-bottom: 0.5rem;
  }

  .header-text {
    font-size: 1.4rem;        /* mindre rubrik på mobil */
    text-align: center;
  }
}

/* ----- MAIN ----- */
main {
  flex: 1;
  padding: 2rem 1rem;
}

/* ----- INFO-SEKTION ----- */
.info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 2rem 0;
}

.info-section section {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1 1 300px;
  max-width: 400px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-section section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.info-section h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #007acc;
  text-decoration: underline;
  text-decoration-color: #ff8800;
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
    margin-bottom: 1rem;
}

.info-section p {
  line-height: 1.6;
  color: #333;
}

/* ----- Knappar ----- */
.openModalBtn, #kontaktForm button {
  display: inline-block;
  background-color: #007acc;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
  margin-top: 1rem;
}

.openModalBtn:hover, #kontaktForm button:hover {
  background-color: #005a96;
  transform: translateY(-2px);
}

/* ----- TEL-LÄNK ----- */
a.tel-länk, .kontakt-lank {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

a.tel-länk:hover, .kontakt-lank:hover {
  text-decoration: underline;
  text-decoration-color: #ff8800;
  text-underline-offset: 4px;
}

/* ----- FOOTER ----- */
footer {
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #468cd1, #ffffff);
  border-top: 2px solid #ff8800;
  border-bottom: 2px solid #ff8800;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

/* ----- POPUP ----- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 14px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeIn 0.25s ease-out;
}

.closeBtn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  cursor: pointer;
  color: #007acc;
  transition: 0.2s;
}

.closeBtn:hover {
  color: #ff8800;
  transform: scale(1.1);
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #007acc;
  text-decoration: underline;
  text-decoration-color: #ff8800;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

#kontaktForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#kontaktForm input, #kontaktForm textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.2s;
}

@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem;
  }

  .logga {
    height: 50px;             /* lite mindre på mobil */
  }

  .header-text {
    font-size: 1.2rem;        /* mindre rubrik på mobil */
  }
}
.tjanster-list li {
  margin-bottom: 0.8rem; /* mer luft mellan punkterna */
  line-height: 1.0;    /* ökar avståndet vertikalt */
}