/* ==================================================
   HOVARD.DK – RYDDERET USER.CSS
   Joomla / Cassiopeia_mig
   Bevarer eksisterende design og samler gentagne regler
   ================================================== */

/* 1. Sidens grundfarver */
body {
  background-color: #ffffff;
  color: #302923;
}

/* 2. Header og logo */
.container-header {
  background: #FFE997 !important;
  background-image: none !important;
  box-shadow: none;
}

.container-header .navbar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.container-header .brand-logo img {
  width: 380px;
  max-width: 80vw;
  height: auto;
  filter: brightness(0) saturate(100%) invert(14%) sepia(39%)
    saturate(2420%) hue-rotate(321deg) brightness(87%) contrast(105%);
}

/* 3. Menu */
.container-header .container-nav {
  width: 100%;
  justify-content: center;
}

.container-header .container-nav .mod-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 32px;
  width: 100%;
  margin: 0;
  padding: 12px 0;
}

.container-header .container-nav .mod-menu a {
  color: #800020 !important;
  font-size: 16px;
  text-decoration: none;
}

.container-header .container-nav .mod-menu a:hover {
  color: #a44a5c !important;
  text-decoration: underline;
}

/* 4. Hovedindhold */
main {
  background-color: #f7f3ed;
  margin: 14px 24px 24px !important;
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box;
  padding: 25px;
}

.container-component {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

main .container-component {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.com-content-category-blog,
.com-content-article {
  color: #302923;
}

main p {
  line-height: 1.75;
}

/* 5. Overskrifter */
h1, h2, h3 {
  color: #76232d;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* 6. Hero / velkomstbanner */
.hovard-hero {
  min-height: 390px;
  display: flex;
  align-items: center;
  padding: 50px 8%;
  box-sizing: border-box;
  border-radius: 3px;
  background-image:
    linear-gradient(
      90deg,
      rgba(25, 28, 30, 0.65),
      rgba(25, 28, 30, 0.08)
    ),
    url('/images/diverse/bg_mig.jpg');
  background-position: center 45%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hovard-hero-indhold {
  max-width: 620px;
  color: #ffffff;
}

.hovard-hero-indhold h1 {
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.12;
  margin: 0 0 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hovard-hero-indhold p {
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.6;
  font-weight: normal;
  margin: 0;
}

.hovard-forside-billeder {
  background: #f7f3ed;
  padding: 30px 20px;
}

/* 7. Mouseover – tre billedkort */
.mouseover-billeder {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 24px !important;
  width: 100%;
  max-width: 1120px !important;
  margin: 25px auto !important;
  padding: 0 10px;
  box-sizing: border-box;
}

.mouseover-kort {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: 340px !important;
  min-width: 0 !important;
  text-align: center;
}

.mouseover-kort > a {
  display: block;
  text-decoration: none;
}

.mouseover-billede {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 3 / 2;
  overflow: hidden !important;
  border-radius: 5px;
}

.mouseover-billede img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 5px;
}

.mouseover-billede img.hover-billede {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  transition: opacity 0.25s ease;
}

.mouseover-billede:hover img.hover-billede {
  opacity: 1 !important;
}

.mouseover-kort:hover .mouseover-billede img:not(.hover-billede) {
  filter: brightness(1.04);
}

.mouseover-tekst {
  padding-top: 8px;
  color: #76232d;
  font-family: Georgia, serif;
  font-size: 21px;
  text-align: center;
}

/* 8. Baggrund på siden Mig */
.mig-baggrund {
  background-image: url('/images/diverse/bg_mig.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.mig_ny-baggrund {
  position: relative;
  isolation: isolate;
  background-image: url('/images/diverse/bg_mig_ny.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.mig_ny-baggrund::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: -1;
  pointer-events: none;
}

/* 9. Kniveside */
.knive-side {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.knive-side > h2 {
  text-align: center;
  color: #76252d;
  margin-bottom: 10px;
}

.knive-intro {
  text-align: center;
  margin-bottom: 35px;
}

.knive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.kniv-kort {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.kniv-kort img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f6f2eb;
  border-radius: 4px;
}

.kniv-kort p {
  margin: 14px 0 0;
  line-height: 1.65;
  font-size: 0.95rem;
}

.kniv-tekst {
  background: #f6f2eb;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kniv-tekst h3 {
  color: #76252d;
  margin-top: 0;
}

/* 10. Rejseoversigt */
.rejser-side {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.rejser-side > h2 {
  text-align: center;
  color: #76252d;
  font-size: 2rem;
  line-height: 1.3;
  margin: 10px 0 15px;
}

.rejser-side .rejser-intro {
  max-width: 700px;
  margin: 0 auto 35px;
  text-align: center;
  line-height: 1.7;
  font-size: 1.05rem;
}

.rejser-side .rejser-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  gap: 22px;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  box-sizing: border-box;
}

.rejser-side .rejse-kort {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 150px;
  margin: 0 !important;
  padding: 22px;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #e8e0d7;
  border-radius: 7px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rejser-side .rejse-aar {
  display: block;
  color: #76252d;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.rejser-side .rejse-kort h3 {
  display: block;
  width: 100%;
  color: #342c27;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 10px 0 18px;
  padding: 0;
  overflow-wrap: anywhere;
}

.rejser-side .rejse-laes {
  display: block;
  color: #76252d;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: auto;
}

.rejser-side .rejse-kort:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  border-color: #d7c5bd;
}

.rejser-side .rejse-kort:hover h3,
.rejser-side .rejse-kort:hover .rejse-laes {
  color: #a03a45;
}

.rejser-side .rejse-kort:focus-visible {
  outline: 3px solid #76252d;
  outline-offset: 3px;
}

/* 11. Tablet */
@media (min-width: 561px) and (max-width: 1000px) {
  .rejser-side {
    padding: 15px;
  }

  .rejser-side .rejser-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px;
  }

  .rejser-side .rejse-kort {
    padding: 15px;
    min-height: 140px;
  }

  .rejser-side .rejse-kort h3 {
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .knive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* 12. Mobil */
@media (max-width: 700px) {
  main {
    margin: 10px !important;
    padding: 15px;
  }

  .mouseover-billeder {
    flex-wrap: wrap !important;
    gap: 22px !important;
  }

  .mouseover-kort {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 420px !important;
  }

  .hovard-hero {
    min-height: 300px;
    padding: 35px 24px;
    background-position: center;
  }

  .rejser-side .rejser-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .container-header .brand-logo img {
    width: 280px;
    max-width: 80vw;
  }

  .container-header .container-nav .mod-menu {
    gap: 10px 20px;
  }

  .hovard-forside-billeder {
    padding: 24px 20px;
  }

  .hovard-hero {
    background-image:
      linear-gradient(
        90deg,
        rgba(25, 28, 30, 0.48),
        rgba(25, 28, 30, 0.04)
      ),
      url('/images/diverse/bg_mig.jpg');
  }

  .hovard-forside-billeder {
    padding-top: 24px;
    padding-bottom: 42px;
  }

  .mouseover-tekst {
    font-size: 22px;
    margin-top: 2px;
  }

  .knive-side {
    padding: 10px;
  }

  .knive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .kniv-kort img {
    height: 240px;
  }

  .rejser-side {
    padding: 10px;
  }

  .rejser-side > h2 {
    font-size: 1.6rem;
  }

  .rejser-side .rejser-intro {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .rejser-side .rejser-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .rejser-side .rejse-kort {
    min-height: 115px;
    padding: 20px;
  }

  .rejser-side .rejse-kort h3 {
    font-size: 1.1rem;
  }
}
