/* Shared course header from the supplied Ausbildungswelt reference. */
@font-face {
  font-family: "Inter Verlag Basics";
  src: url("/assets/fonts/inter-basics-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.course-masthead {
  --masthead-accent: #68d9f4;
  --masthead-night: #03131e;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 51.5% minmax(0, 1fr);
  width: 100%;
  min-height: clamp(500px, 48vw, 720px);
  background: var(--masthead-night);
  color: white;
  font-family: "Inter Verlag Basics", Inter, Arial, sans-serif;
}

.course-masthead-image {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 58%;
}

.course-masthead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 50% 64%);
}

.course-masthead-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, #03131e18 75%, var(--masthead-night) 100%);
}

.course-masthead-copy {
  grid-column: 2;
  padding: clamp(35px, 4vw, 72px) clamp(25px, 4vw, 76px) clamp(35px, 4vw, 72px) 0;
}

.course-masthead .eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: #83def1;
  font-size: 10.5px;
  line-height: 1.6;
  text-transform: uppercase;
  font-weight: 710;
  letter-spacing: .15em;
  white-space: normal;
}

.course-masthead .eyebrow > span {
  width: 5px;
  height: 5px;
  background: var(--masthead-accent);
}

.course-masthead h1 {
  font-size: clamp(58px, 6vw, 97px);
  letter-spacing: -.062em;
  line-height: 1.035;
  font-weight: 650;
  color: white;
  margin: 0 0 23px;
  overflow-wrap: normal;
}

.course-masthead[data-long-title] h1 {
  font-size: clamp(45px, 4.55vw, 76px);
}

.course-masthead .title-dot {
  color: var(--masthead-accent);
}

.course-masthead .hero-subtitle {
  color: #dbe6eb;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.6;
  letter-spacing: -.018em;
  max-width: 35ch;
  margin: 0 0 30px;
}

.course-masthead .hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.course-masthead .course-cta {
  padding: 16px 22px;
  gap: 25px;
  font-size: 14px;
  font-weight: 680;
  border-radius: 6px;
  box-shadow: none;
  background: var(--masthead-accent);
  color: #052c3b;
}

.course-masthead .course-cta:hover {
  background: #96e7fa;
  color: #042536;
}

.course-cta .icon {
  transform: rotate(-45deg);
}

.course-masthead .hero-secondary {
  display: inline-flex;
  gap: 10px;
  color: #dfebf0;
  padding: 4px 0 6px;
}

.course-experience-note {
  margin: 33px 0 0;
  color: #a7c0cd;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .015em;
}

.course-experience-note span {
  color: var(--masthead-accent);
  margin-right: 6px;
}

@media (min-width: 1560px) {
  .course-masthead {
    max-width: 1920px;
    margin-inline: auto;
  }
}

@media (max-width: 850px) {
  .course-masthead { min-height: 470px; }
  .course-masthead h1 { font-size: clamp(44px, 6.3vw, 58px); }
  .course-masthead[data-long-title] h1 { font-size: clamp(34px, 4.9vw, 43px); }
  .course-masthead .eyebrow { font-size: 9px; }
  .course-masthead .hero-subtitle { font-size: 16px; }
  .course-masthead .course-cta { padding: 13px 16px; }
  .course-experience-note { margin-top: 22px; }
}

@media (max-width: 650px) {
  .course-masthead {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .course-masthead-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(220px, 65vw, 360px);
    z-index: auto;
  }
  .course-masthead-image img { object-position: var(--photo-mobile-position, 50% 57%); }
  .course-masthead-image::after {
    background: linear-gradient(0deg, var(--masthead-night), transparent 28%);
  }
  .course-masthead-copy {
    position: relative;
    padding: 4px max(24px, 6vw) 30px;
  }
  .course-masthead .eyebrow {
    font-size: 9px;
    letter-spacing: .12em;
    margin-bottom: 13px;
  }
  .course-masthead h1 {
    font-size: clamp(46px, 12vw, 67px);
    margin-bottom: 15px;
  }
  .course-masthead[data-long-title] h1 { font-size: clamp(36px, 9.1vw, 54px); }
  .course-masthead .hero-subtitle { font-size: 16px; margin: 0 0 20px; }
  .course-masthead .hero-actions { flex-flow: wrap; align-items: center; gap: 11px 17px; }
  .course-masthead .course-cta { font-size: 12px; min-height: 45px; padding: 11px 13px; gap: 12px; }
  .course-masthead .hero-secondary { font-size: 12px; gap: 5px; }
  .course-experience-note { margin-top: 21px; font-size: 10px; }
}

/* Match the updated book motif without tilting or framing its transparency. */
.book-visual.course-book-motif img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
  box-shadow: none;
  filter: drop-shadow(0 7px 7px #12354826);
}
