/* mobil delen */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* knappar */
.button {
    display: inline-block;
    /* rem = root em, gör att texten håller sig relativ till html fonten */
    padding: 0.75rem 1.25rem;
    background: #2f5d3a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 1rem;
    margin-right: 1rem;
}

header {
    padding: 1rem;
}

header > a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 1rem;
}

header img {
    width: 48px;
    height: auto;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

nav a {
    text-decoration: none;
}
/* hero mobil */

.hero {
    padding: 0;
}

.hero img {
    width: 100%;    
    margin-bottom: 1rem;
}

.hero-content {
    padding: 0 1rem 1rem;
}

.hero-content h1 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
}

.hero-content p {
    margin: 0 0 1rem;
}

.hero-content .button {
  display: block;
  width: fit-content;
    margin: 1.5rem auto 0;
}

/* Intro */
.intro {
  padding: 1rem;
}

.intro h2 {
  margin-top: 0;
}

/* Aktiviteter */
.activities {
  padding: 1rem;
  background: #e8e8e8;
}

.activities h2 {
  margin-top: 0;
}

.card {
  background: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.card img {
  width: 100%;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 1rem 5rem 0.5rem;
  padding: 0;
}

.card p {
  margin: 0 5rem 1.25rem;
  padding: 0rem;
}

.planera {
  padding: 1.5rem;
}

.planera-text {
    max-width: 36rem;
}

.planera h2 {
  margin-top: 0;
}

.planera-text p {
    margin: 0;
}

.planera .button {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
}

/* Footer */
footer {
  padding: 1.5rem 1rem;
  background: #5c5348;
  color: #fff;
}

footer a {
  text-decoration: none;
}

.footer-brand img {
  width: 64px;
  margin-bottom: 0.5rem;
}

.footer-kontakt,
.footer-links {
  margin-top: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Desktop versionen */
@media (min-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
  }

  header > a {
    margin-bottom: 0;
  }

  nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }

  .hero {
    position: relative;
    padding: 0;
    max-width: 100%;
  }

  .hero img {
    max-width: 100%;
    max-height: 840px;
    object-fit: cover;
    margin-bottom: 0;
  }

  .hero-content {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-5%);
    max-width: 28rem;
    padding: 1.5rem;
    color: #fff
  }

  .hero-content h1,
  .hero-content p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }

  .intro {
    max-width: 40rem;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
  }

  .activities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
  }

  .activities h2 {
    grid-column: 1 / -1;
    margin-top: 0;
    text-align: center;
  }

  .card {
    background: #fff;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    overflow: hidden;
    margin-bottom: 0;
  }

  .planera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
  }

  .planera p {
    margin: 0;
  }

  footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
  }

  .footer-kontakt,
  .footer-links {
    margin-top: 0;
  }
}