/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif; /* Bas-typsnitt för text */
}

/* Make images and SVGs scale to their container */
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Body */
body {
  background-color: rgb(224, 224, 241);
  color: #333;
  line-height: 1.6;
  padding: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
  padding: 20px;
}

header h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 8px;
}

header .logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
}

header .tagline {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.1em;
  color: #666;
  margin-bottom: 20px;
}

.page_description {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.5;
  padding: 0 10px;
}

.page_description p {
  margin-bottom: 12px;
  font-size: 1.1em;
  color: #333;
}

.page_description p span.highlight {
  color: #000000; /* accentfärg för viktiga ord */
  font-weight: 500;
}

/* Team layout */
.team {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.person {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  width: 100%;
  max-width: 250px;
}

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

.person img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10%;
  object-fit: cover;
  margin: 0 auto 15px;
}

.person h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1.2em;
  margin-bottom: 5px;
}

.person .role {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 5px;
}

.person p a {
  color: #0077cc;
  text-decoration: none;
}

.person p a:hover {
  text-decoration: underline;
}

/* Profile layout for individual subpages (e.g. ulf.html, maria.html) */
.profile {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 30px;
  text-align: left;
  padding: 0 10px;
}

.profile img {
  width: 220px;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  flex: 0 0 auto;
  align-self: flex-start;
  object-fit: cover;
}

.person_details {
  flex: 1 1 auto;
  color: #333;
  line-height: 1.6;
}

.profile > div {
  display: flex;
  flex-direction: column;
}

.contact_card {
  margin-top: auto;
  padding-top: 12px;
  margin-bottom: 0;
  font-weight: bold;
}

/* Footer */
footer {
  margin-top: 50px;
  font-size: 0.9em;
  color: #888;
}

/* Responsivitet */
@media (max-width: 1024px) {
  header h1 {
    font-size: 1.9em;
  }

  .page_description {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .team {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .person {
    width: 260px; /* bredare kort på mellanstora skärmar */
  }

  header h1 {
    font-size: 1.8em;
  }

  .page_description {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  header .logo {
    width: 150px;
  }

  .person {
    width: 90%;
    max-width: 300px;
  }

  .person img {
    width: 80%;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .person_details {
    text-align: center;
  }

  .profile img {
    margin-bottom: 12px;
    flex: none;
    width: 60%;
    max-width: 240px;
  }
}
