/* ==========================================================================
   LUBI Jobopslag – styles
   Hero-sektion (.lubi-hero-machine-video) + Body-sektion (.lubi-job)
   ========================================================================== */

/* ---------------------------- HERO -------------------------------------- */
.lubi-hero-machine-video,
.lubi-hero-machine-video * {
  box-sizing: border-box;
}

.lubi-hero-machine-video {
  --lhmv-pink: #e6007e;
  --lhmv-pink-dark: #c9006d;
  --lhmv-white: #ffffff;
  --lhmv-text: rgba(255, 255, 255, 0.92);
  --lhmv-trust: #00b67a;

  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  min-height: clamp(580px, 80vh, 820px);

  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(38px, 6vw, 60px)
           clamp(16px, 4vw, 36px)
           clamp(84px, 10vw, 120px);

  color: var(--lhmv-white);
  font-family: inherit;
  isolation: isolate;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0f1836;
}

.lubi-hero-machine-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(10, 18, 42, 0.42) 0%,
      rgba(13, 24, 54, 0.34) 26%,
      rgba(16, 29, 67, 0.58) 58%,
      rgba(16, 29, 67, 0.86) 100%
    ),
    linear-gradient(
      90deg,
      rgba(11, 22, 51, 0.36) 0%,
      rgba(11, 22, 51, 0.08) 45%,
      rgba(11, 22, 51, 0.28) 100%
    );

  pointer-events: none;
}

.lhmv-bottom-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 95px;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.lhmv-bottom-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lhmv-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

@keyframes lhmvPulseDot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 0, 126, 0.30);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(230, 0, 126, 0.08);
    opacity: 0.88;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 0, 126, 0.00);
    opacity: 1;
  }
}

@keyframes lhmvDrawUnderline {
  from {
    stroke-dashoffset: 520;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.lhmv-topline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 14px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(20, 31, 67, 0.34);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #ffd4eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;

  transition:
    transform 0.32s cubic-bezier(.2, .8, .2, 1),
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;

  transform-origin: center;
}

.lhmv-topline:hover {
  transform: scale(1.045);
  background: rgba(24, 38, 82, 0.46);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(8, 16, 40, 0.16);
}

.lhmv-topline::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lhmv-pink);
  animation: lhmvPulseDot 2.2s ease-in-out infinite;
  flex: 0 0 8px;
}

.lhmv-title {
  max-width: 760px;
  margin: 0 auto;

  color: #ffffff !important;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}

.lhmv-title,
.lhmv-title *,
.lhmv-title-mark,
.lhmv-title-mark * {
  color: #ffffff !important;
}

.lhmv-title-mark {
  position: relative;
  display: inline-block;
  padding-bottom: 32px;
}

.lhmv-title-underline {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: min(100%, 680px);

  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}

.lhmv-title-underline path {
  fill: none;
  stroke: var(--lhmv-pink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 520;
  stroke-dashoffset: 520;

  animation: lhmvDrawUnderline 1.6s cubic-bezier(.23, 1, .32, 1) 0.25s forwards;

  filter: drop-shadow(0 2px 10px rgba(230, 0, 126, 0.18));
}

.lhmv-subtitle {
  max-width: 760px;
  margin: 14px auto 0;

  color: var(--lhmv-text) !important;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.lhmv-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 8px 12px;

  border-radius: 999px;
  background: rgba(17, 28, 60, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.10);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: #ffffff;
  text-decoration: none !important;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.lhmv-rating:hover {
  background: rgba(17, 28, 60, 0.46);
  transform: translateY(-2px);
}

.lhmv-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.lhmv-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  border-radius: 3px;

  background: var(--lhmv-trust);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  opacity: 1 !important;
}

.lhmv-rating-text {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.lhmv-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;

  width: 100%;
  max-width: 820px;
  margin: 28px auto 0;
}

.lhmv-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 60px;
  padding: 0 24px;
  border-radius: 16px;

  text-decoration: none !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;

  transition:
    transform 0.4s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease;
}

.lhmv-btn:hover {
  transform: translateY(-3px);
}

.lhmv-btn-primary {
  background: linear-gradient(
    135deg,
    var(--lhmv-pink) 0%,
    var(--lhmv-pink-dark) 100%
  );

  color: #ffffff !important;
  box-shadow: 0 16px 28px rgba(230, 0, 126, 0.22);
}

.lhmv-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(19, 35, 77, 0.72);

  color: #ffffff !important;
  box-shadow: 0 14px 24px rgba(7, 15, 39, 0.14);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lhmv-btn-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  min-height: 60px;
  overflow: hidden;
}

.lhmv-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.lhmv-btn-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.lhmv-btn-text-wrap {
  position: relative;
  display: inline-grid;
  align-items: center;

  min-width: 120px;
  height: 24px;
  overflow: hidden;
}

.lhmv-btn-text,
.lhmv-btn-text-hover {
  grid-area: 1 / 1;

  transition:
    transform 0.55s cubic-bezier(.2, .8, .2, 1),
    opacity 0.55s ease;

  white-space: nowrap;
}

.lhmv-btn-text {
  transform: translateX(0);
  opacity: 1;
}

.lhmv-btn-text-hover {
  transform: translateX(42px);
  opacity: 0;
}

.lhmv-btn:hover .lhmv-btn-text {
  transform: translateX(-42px);
  opacity: 0;
}

.lhmv-btn:hover .lhmv-btn-text-hover {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .lubi-hero-machine-video {
    min-height: auto;
    padding: 74px 16px 110px;
  }
  .lhmv-actions {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
  .lhmv-title-mark {
    padding-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .lubi-hero-machine-video {
    padding: 68px 14px 100px;
  }
  .lhmv-title {
    font-size: clamp(26px, 8vw, 38px);
  }
  .lhmv-title-mark {
    padding-bottom: 24px;
  }
  .lhmv-title-underline {
    width: 96%;
    bottom: -4px;
  }
  .lhmv-title-underline path {
    stroke-width: 5;
  }
  .lhmv-subtitle {
    font-size: clamp(17px, 5vw, 22px);
  }
  .lhmv-bottom-divider {
    height: 64px;
  }
  .lhmv-topline:hover,
  .lhmv-btn:hover,
  .lhmv-rating:hover {
    transform: none;
  }
  .lhmv-btn-text-hover {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lhmv-topline,
  .lhmv-topline::before,
  .lhmv-btn,
  .lhmv-btn-text,
  .lhmv-btn-text-hover,
  .lhmv-rating,
  .lhmv-title-underline path {
    animation: none !important;
    transition: none !important;
  }
  .lhmv-title-underline path {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
  .lhmv-topline:hover,
  .lhmv-btn:hover,
  .lhmv-rating:hover {
    transform: none !important;
  }
  .lhmv-btn-text-hover {
    display: none;
  }
}

/* ---------------------------- BODY -------------------------------------- */
.lubi-job,
.lubi-job * {
  box-sizing: border-box;
}

.lubi-job {
  --accent: #e6007e;
  --accent-dark: #bd0068;
  --button: #1f3268;
  --button-hover: #e6007e;
  --text: #35343a;
  --muted: #6d6b73;
  --soft: #fff5fa;
  --border: #f0dbe7;

  max-width: 980px;
  margin: 0 auto;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
}

.lubi-job a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 0, 126, 0.3);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.lubi-job a:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.lubi-job a[href*="lubijob.dk"] {
  color: #e6007e;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  border-bottom: 0;
}

.lubi-job a[href*="lubijob.dk"]:hover {
  color: #bd0068;
  text-decoration-color: #bd0068;
}

.lubi-job a[href*="uddannelsesguiden.ug.dk"] {
  color: #e6007e;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-bottom: 0;
}

.lubi-job a[href*="uddannelsesguiden.ug.dk"]:hover {
  color: #bd0068;
  text-decoration-color: #bd0068;
}

.lubi-job__hero {
  position: relative;
  overflow: hidden;
  padding: 38px;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid #eee8ec;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(41, 25, 35, 0.07);
}

.lubi-job__hero::before {
  position: absolute;
  top: -135px;
  right: -125px;
  width: 340px;
  height: 340px;
  content: "";
  border: 48px solid rgba(230, 0, 126, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.lubi-job__hero-inner {
  position: relative;
  z-index: 1;
}

.lubi-job__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  background: #fff5fa;
  border: 1px solid rgba(230, 0, 126, 0.25);
  border-radius: 99px;
  color: var(--accent);
  cursor: default;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.lubi-job__tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 9px 20px rgba(230, 0, 126, 0.2);
  color: #ffffff;
  transform: translateY(-3px);
}

.lubi-job__tag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(230, 0, 126, 0.72);
  animation: lubi-job-pulse 1.5s infinite;
}

.lubi-job__tag:hover .lubi-job__tag-dot {
  background: #ffffff;
}

@keyframes lubi-job-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 0, 126, 0.72);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 8px rgba(230, 0, 126, 0);
    opacity: 0.72;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 0, 126, 0);
    opacity: 1;
  }
}

.lubi-job__title-box {
  max-width: 850px;
  padding: 0;
  background: transparent;
  border-radius: 18px;
  box-shadow: none;
}

/* Titlen kan være h1 eller h2 – styles via klasse, ikke tag. */
.lubi-job__title {
  margin: 0;
  color: #000000;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lubi-job__hero-description {
  max-width: 780px;
  margin: 22px 0 0;
  color: #000000;
  font-size: 17px;
  line-height: 1.68;
}

.lubi-job__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 0 0 42px;
}

.lubi-job__info-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 112px;
  padding: 21px 18px;
  background: #ffffff;
  border: 1px solid #f0e7ec;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(41, 25, 35, 0.045);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.lubi-job__info-card:hover {
  background: #fffafd;
  border-color: rgba(230, 0, 126, 0.38);
  box-shadow: 0 15px 30px rgba(230, 0, 126, 0.12);
  transform: translateY(-5px);
}

.lubi-job__info-icon {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--soft);
  border-radius: 11px;
  font-size: 18px;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.lubi-job__info-card:hover .lubi-job__info-icon {
  background: #ffe0f0;
  transform: rotate(-6deg) scale(1.08);
}

.lubi-job__info-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lubi-job__info-value {
  display: block;
  color: #000000;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.lubi-job__section {
  padding: 28px;
  margin: 0 0 28px;
  background: #ffffff;
  border: 1px solid #eee8ec;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(41, 25, 35, 0.055);
}

.lubi-job__heading {
  position: relative;
  display: block;
  padding-left: 18px;
  margin: 0 0 13px;
  color: #000000;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lubi-job__heading::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: block;
  width: 5px;
  height: 30px;
  content: "";
  background: var(--accent);
  border-radius: 99px;
}

.lubi-job__section > p {
  max-width: 850px;
  padding-left: 18px;
  margin: 0 0 19px;
  color: #000000;
}

.lubi-job__list {
  display: block;
  padding: 0 0 0 18px;
  margin: 0;
  list-style: none;
}

.lubi-job__list li {
  position: relative;
  min-height: 0;
  padding: 3px 0 3px 23px;
  margin: 0 0 8px;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.lubi-job__list li::before {
  position: absolute;
  top: 5px;
  left: 0;
  display: block;
  width: 18px;
  height: 18px;
  content: "\2022";
  background: transparent;
  color: #1f3268;
  font-size: 25px;
  font-weight: 900;
  line-height: 16px;
}

.lubi-job__safety {
  padding: 25px 27px;
  margin-top: 30px;
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.lubi-job__safety:hover {
  border-color: rgba(230, 0, 126, 0.35);
  box-shadow: 0 13px 25px rgba(230, 0, 126, 0.09);
  transform: translateY(-3px);
}

.lubi-job__safety strong {
  color: var(--accent);
}

.lubi-job__safety p {
  margin: 0;
  color: #000000;
}

.lubi-job__apply {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 29px;
  margin-top: 48px;
  background: linear-gradient(110deg, #faf9fc 0%, #fff1f8 100%);
  border-left: 5px solid var(--accent);
  border-radius: 0 20px 20px 0;
  box-shadow: 0 10px 28px rgba(50, 24, 41, 0.06);
}

.lubi-job__apply::after {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  content: "";
  border: 34px solid rgba(230, 0, 126, 0.05);
  border-radius: 50%;
}

.lubi-job__apply-content {
  position: relative;
  z-index: 1;
}

/* Overskrift i ansøgningsboksen – styles via klasse, ikke tag. */
.lubi-job__apply-heading {
  margin: 0 0 7px;
  color: #000000;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lubi-job__apply p {
  margin: 0 0 7px;
  color: #000000;
}

.lubi-job__phone {
  color: var(--accent) !important;
  font-weight: 800;
}

.lubi-job__id {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 3px 11px;
  background: var(--accent);
  border-radius: 99px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.lubi-job__id:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px rgba(230, 0, 126, 0.2);
}

.lubi-job__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin: 17px 0 8px;
  padding: 14px 25px;
  background: var(--button);
  border: 2px solid var(--button) !important;
  border-radius: 99px;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
  overflow: hidden;
  transition:
    background 0.7s ease,
    border-color 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.7s ease,
    color 0.7s ease;
}

.lubi-job__button-text {
  position: relative;
  display: block;
  min-width: 112px;
  text-align: center;
  color: #ffffff;
  transition:
    transform 0.7s ease,
    opacity 0.7s ease;
}

.lubi-job__button-text--hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 120%);
  opacity: 0;
  color: #ffffff;
  pointer-events: none;
  white-space: nowrap;
  transition:
    transform 0.7s ease,
    opacity 0.7s ease;
}

.lubi-job__button:hover {
  background: var(--button-hover);
  border-color: var(--button-hover) !important;
  box-shadow: 0 10px 20px rgba(230, 0, 126, 0.18);
  transform: translateX(-10px);
}

.lubi-job__button:hover .lubi-job__button-text--default {
  opacity: 0;
  transform: translateX(-120%);
}

.lubi-job__button:hover .lubi-job__button-text--hover {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.lubi-job__closing {
  margin: 0 !important;
  color: #000000;
}

@media (max-width: 767px) {
  .lubi-job__hero {
    padding: 25px 20px;
    border-radius: 17px;
  }
  .lubi-job__title-box {
    padding: 0;
  }
  .lubi-job__title {
    font-size: 34px;
  }
  .lubi-job__hero-description {
    font-size: 16px;
  }
  .lubi-job__info {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }
  .lubi-job__section {
    padding: 22px 20px;
    border-radius: 16px;
  }
  .lubi-job__heading {
    padding-left: 16px;
    font-size: 24px;
  }
  .lubi-job__heading::before {
    height: 27px;
  }
  .lubi-job__section > p {
    padding-left: 16px;
  }
  .lubi-job__list {
    padding-left: 16px;
  }
  .lubi-job__apply {
    padding: 25px 21px 26px;
    border-radius: 0 16px 16px 0;
  }
  .lubi-job__apply-heading {
    font-size: 23px;
  }
  .lubi-job__button {
    min-width: 0;
    width: 100%;
  }
}
