/* ============================================================
   BLOCK-CSS: Job-Teaser (as-schoendienst/job-teaser)
   Nur Frontend + Block-Editor (Loader enqueued block.css).
   Design-Werte aus dem Theme-SCSS (brand-guidelines):
     $primary   #056ab4  (Blau, --as-color-accent-brand)
     $secondary #06284b  (Navy, --as-color-navy)
     $muted     #adadad / #6c757d
   Layouts: full (Vollfläche+Scrim) | split (Bild links/Text rechts)
            | stats (Vollfläche + Kultur-Kennzahlen-Streifen)
   ============================================================ */
@import "../../../assets/tokens.css" layer(sdc-tokens);

/* ------------------------------------------------------------
   Basis: Sektion = Vollfläche mit Bild + Scrim
   ------------------------------------------------------------ */
.as-job-teaser {
  position: relative;
  overflow: hidden;
  color: var(--as-color-white, #fff);
  background: var(--as-color-navy, #06284b);
}

.as-job-teaser__media,
.as-job-teaser__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.as-job-teaser__media img {
  object-position: center;
}

/* Fokus-Positionen (object-position) */
.as-job-teaser--focus-top .as-job-teaser__media img {
  object-position: center top;
}
.as-job-teaser--focus-bottom .as-job-teaser__media img {
  object-position: center bottom;
}

/* Scrim (Dunkel-Verlauf) für Lesbarkeit */
.as-job-teaser__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 40, 75, 0.92) 0%,
    rgba(6, 40, 75, 0.75) 45%,
    rgba(6, 40, 75, 0.35) 100%
  );
  z-index: 1;
}

.as-job-teaser__container {
  position: relative;
  z-index: 2;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.as-job-teaser__inner {
  max-width: 720px;
}

/* Kopfbereich (section-head-Molekül) auf dunklem Grund:
   Überschrift/Eyebrow/Intro weiß bzw. hell. */
.as-job-teaser .as-section-head .as-eyebrow {
  color: var(--as-color-accent-brand, #056ab4);
}
.as-job-teaser .as-section-head .as-headline {
  color: var(--as-color-white, #fff);
}
.as-job-teaser .as-section-head .as-section-head__intro {
  color: rgba(255, 255, 255, 0.85);
}

/* ------------------------------------------------------------
   Initiativ-Modus: Hinweis + Buttons
   ------------------------------------------------------------ */
.as-job-teaser__note {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.as-job-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ------------------------------------------------------------
   Jobs-Modus: Stellenliste (Titel + Standort)
   ------------------------------------------------------------ */
.as-job-teaser__jobs {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.as-job-teaser__job + .as-job-teaser__job {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.as-job-teaser__job-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  color: var(--as-color-white, #fff);
  text-decoration: none;
  transition: color 0.2s ease;
}

.as-job-teaser__job-link:hover {
  color: var(--as-color-accent-brand, #056ab4);
}

.as-job-teaser__job-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.as-job-teaser__job-badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--as-color-accent-brand, #056ab4);
  color: var(--as-color-white, #fff);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.as-job-teaser__job-location {
  margin-left: auto;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.as-job-teaser__job-arrow {
  font-size: 1.1rem;
  color: var(--as-color-accent-brand, #056ab4);
}

/* ------------------------------------------------------------
   Layout: split (Bild links, Text rechts)
   ------------------------------------------------------------ */
.as-job-teaser--split .as-job-teaser__media {
  width: 50%;
  right: auto; /* Bild links */
}

.as-job-teaser--split .as-job-teaser__overlay {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(6, 40, 75, 0.92) 45%,
    rgba(6, 40, 75, 0.92) 100%
  );
}

.as-job-teaser--split .as-job-teaser__container {
  margin-left: 50%; /* Text rechts */
}

.as-job-teaser--split .as-job-teaser__inner {
  margin-left: auto;
  max-width: 560px;
  padding-left: clamp(1.5rem, 5vw, 4rem);
}

/* ------------------------------------------------------------
   Layout: stats (Vollfläche + Kultur-Kennzahlen-Streifen)
   ------------------------------------------------------------ */
.as-job-teaser--stats .as-job-teaser__stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.as-job-teaser--stats .as-job-teaser__stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.as-job-teaser__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.as-job-teaser__stat-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--as-color-accent-brand, #056ab4);
}

.as-job-teaser__stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .as-job-teaser--split .as-job-teaser__media {
    width: 100%;
    right: 0;
  }
  .as-job-teaser--split .as-job-teaser__container {
    margin-left: 0;
  }
  .as-job-teaser--split .as-job-teaser__inner {
    max-width: 720px;
    padding-left: 0;
  }
  .as-job-teaser__job-location {
    display: none; /* auf Mobil die Standortzeile ausblenden */
  }
}
