/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #5F8CB4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.indbydelser-main {
  padding: 2rem;
}

/* INTRO */
.indbydelse-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}

.indbydelse-banner {
  width: 48.9%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.indbydelse-tekst {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* GRID */
.indbydelse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* KORT */
.indbydelse-kort {
  background: #003255;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333;
}

.dark-mode .indbydelse-kort {
  background: #5F8CB4;
}

/* BILLEDER */
.indbydelse-billede,
.indbydelse-billede_3 {
  width: auto;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* TEKST */
.indbydelse-kort h2,
.indbydelse-kort h3,
.indbydelse-kort p {
  margin-top: 0.8rem;
  font-size: 1.3rem;
}

/* CTA-KNAPPER - Fælles styling */
.cta-knap,
.cta-button,
.cta-1,
.cta-2,
.cta-3,
.cta-4,
.cta-5 {
  display: inline-block;
  margin-top: 1rem;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 21px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover-effekt for .cta-knap */
.cta-knap:hover {
  background-color: #005fa3;
}

/* CTA-Varianter */
.cta-1 {
  background-color: #5F8CB4;
  color: white;
}
.cta-1:hover {
  background-color: white;
  color: #5F8CB4;
}
.dark-mode .cta-1 {
  background-color: #003255;
  color: white;
}
.dark-mode .cta-1:hover {
  background-color: white;
  color: #5F8CB4;
}

.cta-2 {
  background-color: #7D878C;
  color: white;
}
.cta-2:hover {
  background-color: #4678C8;
}

.cta-3 {
  background-color: #4678C8;
  color: white;
}
.cta-3:hover {
  background-color: #FF733C;
  color: white;
}

.cta-4 {
  background-color: #D22832;
  color: white;
}
.cta-4:hover {
  background-color: white;
  color: #5F8CB4;
}

.cta-5 {
  background-color: #FF733C;
  color: white;
}
.cta-5:hover {
  background-color: #ffffff;
  color: #7D878C;
}

/* === RESPONSIVE MEDIA QUERIES === */

/* Små skærme (op til 359px) */
@media (max-width: 359px) {
  .indbydelse-banner {
    width: 100%;
  }

  .indbydelse-billede,
  .indbydelse-billede_3 {
    width: auto;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
  }

  .indbydelse-intro {
    flex-direction: column;
  }

  .indbydelse-tekst {
    text-align: left;
  }
}

/* Mindre mobiler (360px – 479px) */
@media (min-width: 360px) and (max-width: 479px) {
  .indbydelse-banner {
    width: 100%;
  }

  .indbydelse-intro {
    flex-direction: column;
  }

  .indbydelse-kort h2,
  .indbydelse-kort h3,
  .indbydelse-kort p {
    font-size: 1.1rem;
  }
}

/* Standard mobiler (480px – 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .indbydelse-banner {
    width: 100%;
  }

  .indbydelse-intro {
    flex-direction: column;
  }
}

/* Tablets (768px – 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .indbydelse-banner {
    width: 50%;
  }

  .indbydelse-intro {
    flex-direction: row;
    justify-content: center;
  }

  .indbydelse-tekst {
    padding-left: 1rem;
    justify-content: center;
  }

  .indbydelse-grid {
    grid-template-columns: repeat(2, 1fr);
    width: auto;
    gap: 2.5rem;
  }
}

/* Laptops (1024px – 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .indbydelse-banner {
    width: 50%;
  }

  .indbydelse-intro {
    flex-direction: row;
    justify-content: center;
  }

  .indbydelse-tekst {
    padding-left: 1rem;
    justify-content: center;
  }

  .indbydelse-grid {
    grid-template-columns: repeat(2, 1fr);
    width: auto;
    gap: 2.5rem;
  }
}

/* Laptops (1440px – 1629px) */
@media (min-width: 1440px) and (max-width: 1629px) {
  .indbydelse-banner {
    width: 50%;
  }

  .indbydelse-intro {
    flex-direction: row;
    justify-content: center;
  }

  .indbydelse-tekst {
    padding-left: 1rem;
    justify-content: center;
  }

  .indbydelse-grid {
    grid-template-columns: repeat(2, 1fr);
    width: auto;
    gap: 2.5rem;
  }
}

/* Store skærme (1620px+) */
@media (min-width: 1620px) {
  .indbydelse-tekst {
    max-width: 900px;
  }

  .indbydelse-kort {
    padding: 2rem;
  }

  .indbydelse-kort h2,
  .indbydelse-kort h3,
  .indbydelse-kort p {
    font-size: 1.5rem;
  }

  .indbydelse-grid {
    grid-template-columns: repeat(4, 1fr);
    width: auto;
    gap: 2.5rem;
  }
}
