/* ===== Kontakt Wrapper ===== */
.kontakt-sektion {
    display: none;
}

.kontakt-wrapper {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
  background: #f4f4f4;
}

.kontakt-box {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  max-width: 1100px;
  width: 100%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Intro-text */
.intro-box {
  font-size: 17px;
  line-height: 1.8;
  color: #222;
  text-align: start;
  font-weight: 500;
}

/* Kontakt + Bild */
.kontakt-container {
  display: flex;
  justify-content: space-between; /* sprider ut info och bilder */
  align-items: flex-start; /* justerar toppen */
  gap: 20px; /* avstånd mellan info och bilder */
}

.kontakt-info-box {
  flex: 2;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.kontakt-info-box h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #000;
  border-bottom: 3px solid #aa380e;
}

.kontakt-info-box p {
  font-size: 18px;
  line-height: 1.8;
  margin: 12px 0;
  color: #333;
}

.kontakt-info-box a {
  color: #0066cc;
  font-weight: 500;
  text-decoration: none;
}

.kontakt-info-box a:hover {
  text-decoration: underline;
}

.kontakt-info-box {
  flex: 1; /* tar upp vänsterdel */
}

.kontakt-bilder { 
  display: flex; 
  direction: row; 
  flex: 1; /* tar upp högerdel */ 
  flex-wrap: wrap; /* tillåter radbrytning */ 
  justify-content: center; /* centrerar bilder */ 
  gap: 10px; 
  margin-top: 10px; } 
  
  .kontakt-bilder img { 
    width: 250px; 
    height: auto; 
    border-radius: 8px; }

/* Jobb-sektion */
.job-box {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s;
}

.job-box:hover {
  transform: translateY(-5px);
}

.job-box h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #000;
  border-bottom: 3px solid #aa380e;
}

/* ===== Responsiv design ===== */
@media (max-width: 1200px) {
  .kontakt-box {
    padding: 40px 30px;
  }
}

@media (max-width: 992px) {
  .kontakt-container {
    flex-direction: column !important; /* tvinga kolumnlayout */
    gap: 30px;
    overflow: hidden; /* förhindra overflow från flex */
  }
  
  .kontakt-info-box,
  .kontakt-bilder {
    flex: 1 1 100%; /* full bredd under varandra */
    max-width: 100%;
  }
  
  .kontakt-bilder img {
    width: 100%; 
    height: auto;
    object-fit: cover;
  }
}


@media (max-width: 600px) {
   .kontakt-box {
    position: relative;
    padding-top: 220px; /* ger plats för Buss 2 högst upp */
  }

  .kontakt-wrapper {
    padding: 40px 10px;
  }

    .kontakt-sektion {
        display: block;
        text-align: center;
        margin-bottom: 0px;
        font-size: 20px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        text-transform: uppercase;
        font-weight: bold;
        margin-top: 10px;
        border-bottom: 3px solid #aa380e;
    }

  .kontakt-bilder img:last-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 17px;
    object-fit: cover;
    z-index: 1;
    height: auto;
    border-radius: 10px;
  }
  
  .intro-box {
    font-size: 19px;
    margin-top: 19px;
    text-align: justify;
    text-justify: inter-word; /* standard, justerar ord */
    word-spacing: 0em;
  }
  .kontakt-info-box, .photo-box, .job-box {
    padding: 20px;
  }
  .kontakt-info-box h3, .job-box h3 {
    font-size: 1.8rem;
  }
  .kontakt-info-box p {
    font-size: 19px;
  }
  .job-box p {
    font-size: 19px;
    padding: 10px 20px;
    text-align: center;
  }
}
